Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ooopsnake/clap-demo
https://github.com/ooopsnake/clap-demo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ooopsnake/clap-demo
- Owner: ooopSnake
- Created: 2022-03-11T14:34:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-11T14:41:02.000Z (almost 3 years ago)
- Last Synced: 2023-12-04T17:57:50.719Z (about 1 year ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clap derive demo
## build
```bash
cargo build --bin fake-docker
```## run example
```bash
fake-docker --help# subcommand log example
fake-docker log -f --since "1h" -c 1fab3# subcommand ps example
fake-docker ps fake-container-id
```### help info
```text
clap-demo 0.1.0
Example show how to use this demo Subcommand: - log ```bash ./fake-docker log -f --since "1h" -c
1fab3 ``` - ps ```bash ./fake-docker ps 1fab3 ```USAGE:
fake-dockerOPTIONS:
-h, --help Print help information
-V, --version Print version informationSUBCOMMANDS:
help Print this message or the help of the given subcommand(s)
log show container logs
ps show container status```