This crate allows execution of CLI commands on Arista EOS switches from Rust programs.
toml
[dependencies]
eos_eapi = "0.1"
API usage example: ``` let result = eapi_run(None, &["show clock", "show aliases"], ResultFormat::Json); match result { Response::Result(v) => println!("{v:?}"), Response::Error { message, code, errors, } => println!("error code: {code}, message: {message}, outputs: {errors:#?}"), };