Skip to content

Commit

Permalink
Populate flag variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hedge-sparrow committed Oct 16, 2024
1 parent 2e1728e commit 19e79c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cli/cmd/customer_download_license.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ You must specify the customer using either their name or ID with the --customer
# Download license for a customer in a specific app (if you have multiple apps)
replicated customer download-license --app myapp --customer "Acme Inc" --output license.yaml`,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, args []string) (err error) {

if customer, err = cmd.Flags().GetString("customer"); err != nil {
return err
}

if output, err = cmd.Flags().GetString("output"); err != nil {
return err
}

return r.downloadCustomerLicense(cmd, customer, output)
},
SilenceUsage: true,
Expand Down

0 comments on commit 19e79c8

Please sign in to comment.