osp-cli 1.5.1

CLI and REPL for querying and managing OSP infrastructure data
Documentation
1
2
3
4
5
6
7
8
use osp_cli::dsl::parse_pipeline;

#[test]
fn parse_pipeline_preserves_quoted_pipe_in_command() {
    let parsed = parse_pipeline("ldap user 'foo|bar' | P uid").expect("valid pipeline");
    assert_eq!(parsed.command, "ldap user 'foo|bar'");
    assert_eq!(parsed.stages, vec!["P uid"]);
}