oak-cmd 0.0.11

High-performance incremental Windows Command (CMD) parser for the oak ecosystem with flexible configuration, supporting shell scripting and automation workflows.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use oak_cmd::{language::CmdLanguage, parser::CmdParser};
use oak_testing::parsing::ParserTester;
use std::time::Duration;

#[test]
fn test_parser() {
    let tester = ParserTester::new(r"e:\普遍优化\oaks\examples\oak-cmd\tests\fixtures").with_extension(".cmd").with_timeout(Duration::from_millis(1000));

    let language = CmdLanguage::default();
    let parser = CmdParser::new(&language);
    tester.run_tests::<CmdLanguage, CmdParser>(&parser).unwrap();
}