Skip to content

refactor: use clap value_enum replace some trait#3

Open
fan-tastic-z wants to merge 1 commit into
tyr-rust-bootcamp:masterfrom
fan-tastic-z:feat-use-clap-value_enum
Open

refactor: use clap value_enum replace some trait#3
fan-tastic-z wants to merge 1 commit into
tyr-rust-bootcamp:masterfrom
fan-tastic-z:feat-use-clap-value_enum

Conversation

@fan-tastic-z
Copy link
Copy Markdown

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