wasmCloud / wash

WAsmcloud SHell - the comprehensive command-line tool for wasmCloud development
https://wasmcloud.com
Apache License 2.0
148 stars 58 forks source link

[FEATURE] Add alias delete to del command for `wash app` #866

Closed ricochet closed 11 months ago

ricochet commented 11 months ago

Is your feature request related to a problem? Please describe. Enhancement

Describe the solution you'd like Change del to alias and delete as the main command.

Describe alternatives you've considered I was surprised that all of the other commands are long and delete is the only shortened one.

Alternatively, add an alias for wash app delete to wash app del.

The main reason why I'd prefer to see delete in the help info as it's easier to read.

wash app --help
Manage declarative applications and deployments (wadm) (experimental)

Usage: wash app [OPTIONS] <COMMAND>

Commands:
  list      List application specifications available within the lattice
  get       Retrieve the details for a specific version of an app specification
  history   Retrieve the version history of a given model within the lattice
  del       Delete a model version
  put       Puts a model version into the store
  deploy    Deploy an application to the lattice
  undeploy  Undeploy an application, removing it from the lattice
  help      Print this message or the help of the given subcommand(s)

Options:
  -o, --output <OUTPUT>  Specify output format (text or json) [default: text]
      --experimental     Whether or not to enable experimental features [env: WASH_EXPERIMENTAL=]
  -h, --help             Print help
WallysFerreira commented 11 months ago

Hey I'd like to work on this

connorsmith256 commented 11 months ago

Sounds great @WallysFerreira!

WallysFerreira commented 11 months ago

Just to make sure I'm getting it right. In the AppCliCommand I need to change the clap name from "del" to "delete", then add "del" as an alias with clap alias?

LiamRandall commented 11 months ago

Sounds right to me!

connorsmith256 commented 11 months ago

Resolved by https://github.com/wasmCloud/wash/pull/876