P4CLI-20251
A simple Rust library for full-featured P4 CLI with zero pre-install, where all errors are propagated via Result without any unwrap.
Usage
[]
= "0.3.0"
use P4Cli;
A simple Rust library for full-featured P4 CLI with zero pre-install, where all errors are propagated via Result without any unwrap.
[dependencies]
p4cli-20251 = "0.3.0"
use p4cli_20251::P4Cli;
fn main() -> std::io::Result<()> {
let p4 = P4Cli::new()?;
for line in p4.run(&["--help"])? {
println!("{}", line?);
}
Ok(())
}