Skip to content

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

@davidferlay

Description

@davidferlay

Current

  • Option flags are splitted in 2 categories: Flags and Global Flags:
launchrctl platform:event-bus -help
Usage:                                   
  plasmactl platform:event-bus action channel [flags]

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions