launchrctl / launchr

Launchr is a CLI action runner that executes actions inside short-lived local containers.
Apache License 2.0
11 stars 2 forks source link

Action helper mixing flags to all actions with action specific flags #46

Closed davidferlay closed 4 months ago

davidferlay commented 4 months ago

Current

Flags: --cluster string Cluster: Target cluster config (default: dev) <- Action specific --entrypoint string Image Entrypoint: Overwrite the default ENTRYPOINT of the image <- Global to all actions --exec Exec command: Overwrite CMD definition of the container <- Global to all actions -h, --help help for platform:event-bus <- Global to all actions --message string Publish message: Required option for publish action <- Action specific --no-cache No cache: Send command to build container without cache <- Global to all actions --remove-image Remove Image: Remove an image after execution of action <- Global to all actions --sshpass string SSH Key passphrase <- Action specific --use-volume-wd Use volume as a WD: Copy the working directory to a container volume and not bind local paths. Usually used with remote environments. <- Global to all actions --vault-path string Vault path: Option to override default vault path. <- Action specific --vaultpass string Vault password <- Action specific

Global Flags: --keyring-passphrase string Passphrase for keyring encryption/decryption -q, --quiet disable stdOut -v, --verbose count log verbosity level, use -vvv DEBUG, -vv WARN, -v INFO


- Option flags applying to all actions are mixed with action specific flags

### Expected

- It would be much clearer to user if flags applying to all actions were visually separated to action specific flags
- A new section `Global Action Flags:` could be added and related flags moved to it