1 unstable release
0.1.0 | Jul 15, 2022 |
---|
22KB
424 lines
rusty-cli
Build fast and scalable command line applications with rust!
Project information
Rusty-cli is a rust library written for making the process of developing command line interfaces. It provides a ton of useful abstractions for existing libraries. For example does the rusty-cli ecosystem provide wrapped implementations for the dialoguer library. But rusty-cli also has some great features like the FileReader or the integrated command handler.
Usage
Just paste the dependency into your Cargo.toml
rusty-cli = "0.1.0"
Getting started
Do you want to create your first project with rusty-cli?
Try this example for testing your installation.
let pong_command = Command::new(
"Pong".to_string(),
"Pong command".to_string(),
"usage".to_string(),
executor,
"ping".to_string()
);
let mut runner = Runner::new();
runner.enable_command_handler(CommandHandlerArguments {
commands: vec![pong_command],
default_no_argument_callback: None,
flags: vec![]
});
runner.run();
Documentation
Contribute
This repository is maintained actively. If you have got a new feature request or you found a bug, feel free to open a new issue or just create your own implementation to fix your problem and create a pull request to this repository. I am always open for new contributions from every origin. Feel free to help this project to gain more users and features.
Dependencies
~1.4–9MB
~68K SLoC