posh-tabcomplete 0.1.1

Blazing fast tab completion for powershell.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod testenv;
use itertools::Itertools;
use rstest::rstest;
use rstest_reuse::{self, *};
use std::io::BufRead;
pub use testenv::*;

#[apply(shell_to_use)]
fn test_init(shell: &str) {
    let testenv = TestEnv::new(shell);
    let res = testenv
        .run_with_profile("Write-Output 'hello world'")
        .unwrap();
    let lines = res.stdout.lines().map(|x| x.unwrap()).collect_vec();
    assert_eq!(vec!["hello world"], lines);
}