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

wacker-cli: unify clap attributes and remove unnecessary ones #13

Merged
merged 1 commit into from Dec 12, 2023

Conversation

iawia002
Copy link
Owner

Even though #[clap()] still works, #[arg()] and #[command()] are now recommended since clap v4, ref clap-rs/clap#4180.

before:

wacker client

Usage: wacker <COMMAND>

Commands:
  run      Runs a WebAssembly module
  list     List running WebAssembly modules
  stop     Stops a WebAssembly module
  restart  Restart a WebAssembly module
  delete   Delete a WebAssembly module
  logs     Fetch the logs of a module
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

after:

wacker client

Usage: wacker <COMMAND>

Commands:
  run      Runs a WebAssembly module
  list     Lists running WebAssembly modules [aliases: ps]
  stop     Stops a WebAssembly module
  restart  Restarts a WebAssembly module
  delete   Deletes a WebAssembly module [aliases: rm]
  logs     Fetches logs of a module [aliases: log]
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

@iawia002 iawia002 merged commit 0295e0d into main Dec 12, 2023
2 checks passed
@iawia002 iawia002 deleted the clap-cleanup branch December 12, 2023 02:42
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.

None yet

1 participant