replicatedhq / replicated

A CLI to create, edit and promote releases in Replicated
https://vendor.replicated.com
MIT License
34 stars 23 forks source link

fix(cmx): addon create object-store error masked #384

Closed emosbaugh closed 5 months ago

emosbaugh commented 5 months ago

MarkFlagRequired is returning an error because the flag has the wrong name and is making the function return early but the error is being masked by the _

ethan@Ethans-MacBook-Pro-2 replicated % replicated cluster addon create object-store b53f6b59 --bucket-prefix=blah
Error: unsupported output format: 

Usage:
  replicated cluster addon create object-store CLUSTER_ID --bucket-prefix BUCKET_PREFIX [flags]

Example:
  $ replicated cluster addon create object-store 05929b24 --bucket-prefix mybucket
  05929b24    Object Store    pending         {"bucket_prefix":"mybucket"}

Flags:
      --bucket-prefix string   A prefix for the bucket name to be created (required)
  -h, --help                   help for object-store

Global Flags:
      --app string     The app slug or app id to use in all calls
      --token string   The API token to use to access your app in the Vendor API