xcli-rs

A CLI implementation in Rust that is based on Rustyline.

Supported Platforms * Unix * Windows * cmd.exe * Powershell * MacOS (not tested yet)

Note: * " quoted argument is not supported * No prompt is shown when running on non-tty device. Need a simple tweak on Rustyline...

Example

```no_run use xcli::*;

let mut app = App::new("xCLI") .version("v0.1") .author("kingwel.xie@139.com");

app.addsubcommand(Command::new("qwert") .about("controls testing features") .usage("qwert") .action(|app, _actions| -> XcliResult { println!("qwert tested"); Ok(CmdExeCode::Ok) }));

app.run(); ```

crates.io

You can use this package in your project by adding the following to your Cargo.toml:

toml [dependencies] xcli = "0.5"

ChangeLog