https://github.com/krishpranav/rustcli
A simple rust framework to build cli applications
https://github.com/krishpranav/rustcli
cli command-line commandline idea iterm jetbrains language rust rust-lang terminal
Last synced: 6 months ago
JSON representation
A simple rust framework to build cli applications
- Host: GitHub
- URL: https://github.com/krishpranav/rustcli
- Owner: krishpranav
- License: apache-2.0
- Created: 2021-12-25T11:26:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-26T07:55:56.000Z (over 4 years ago)
- Last Synced: 2025-03-04T13:46:30.123Z (over 1 year ago)
- Topics: cli, command-line, commandline, idea, iterm, jetbrains, language, rust, rust-lang, terminal
- Language: Rust
- Homepage:
- Size: 1.22 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rustcli
A simple rust framework to build cli applications
[](https://github.com/krishpranav/rustcli/actions/workflows/rust.yml)
[](https://forthebadge.com)
## About:
- a rust framework to help developers create cli app easily :)
## Installation:
```toml
[dependencies]
rustcli = { git = "https://github.com/krishpranav/rustcli" }
```
## Quick Start:
- basic cli app using rustcli
```rust
use rustcli::{App};
use std::env;
fn main() {
let args: Vec = env::args().collect();
let app = App::new(env!("CARGO_PKG_NAME"))
.description("hey this is a cli app build using rust cli")
.author("Authorone")
.version(env!("CARGO_PKG_VERSION"))
.usage("cli [args]")
.action(|c| println!("Hello, {:?}", c.args));
app.run(args);
}
```
- for more tutorial visit the [docs](https://github.com/krishpranav/rustcli/blob/master/README.md)