Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use clap value_enum replace some trait #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fan-tastic-z
Copy link

use value_enum replace some trait, At the same time, the help information is more friendly, and the enumeration types of parameters can be automatically listed.

Encode a string to base64

Usage: rcli base64 encode [OPTIONS]

Options:
  -i, --input <INPUT>    [default: -]
      --format <FORMAT>  [default: standard] [possible values: standard, urlsafe]
  -h, --help             Print help
Usage: rcli csv [OPTIONS] --input <INPUT>

Options:
  -i, --input <INPUT>          
  -o, --output <OUTPUT>        
      --format <FORMAT>        [default: json] [possible values: json, yaml]
  -d, --delimiter <DELIMITER>  [default: ,]
      --header                 
  -h, --help                   Print help

Usage: rcli text sign [OPTIONS] --key <KEY>

Options:
  -i, --input <INPUT>    [default: -]
  -k, --key <KEY>        
      --format <FORMAT>  [default: blake3] [possible values: blake3, ed25519]
  -h, --help             Print help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant