Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Consistently uppercase descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rndstr committed Feb 16, 2018
1 parent 23f498d commit f6627cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions cmd/fluxctl/release_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ func (opts *controllerReleaseOpts) Command() *cobra.Command {

AddOutputFlags(cmd, &opts.outputOpts)
AddCauseFlags(cmd, &opts.cause)
cmd.Flags().StringVarP(&opts.namespace, "namespace", "n", "default", "controller namespace")
cmd.Flags().StringSliceVarP(&opts.controllers, "controller", "c", []string{}, "list of controllers to release <namespace>:<kind>/<name>")
cmd.Flags().BoolVar(&opts.allControllers, "all", false, "release all controllers")
cmd.Flags().StringVarP(&opts.image, "update-image", "i", "", "update a specific image")
cmd.Flags().BoolVar(&opts.allImages, "update-all-images", false, "update all images to latest versions")
cmd.Flags().StringSliceVar(&opts.exclude, "exclude", []string{}, "list of controllers to exclude <namespace>:<kind>/<name>")
cmd.Flags().BoolVar(&opts.dryRun, "dry-run", false, "do not release anything; just report back what would have been done")
cmd.Flags().StringVarP(&opts.namespace, "namespace", "n", "default", "Controller namespace")
cmd.Flags().StringSliceVarP(&opts.controllers, "controller", "c", []string{}, "List of controllers to release <namespace>:<kind>/<name>")
cmd.Flags().BoolVar(&opts.allControllers, "all", false, "Release all controllers")
cmd.Flags().StringVarP(&opts.image, "update-image", "i", "", "Update a specific image")
cmd.Flags().BoolVar(&opts.allImages, "update-all-images", false, "Update all images to latest versions")
cmd.Flags().StringSliceVar(&opts.exclude, "exclude", []string{}, "List of controllers to exclude")
cmd.Flags().BoolVar(&opts.dryRun, "dry-run", false, "Do not release anything; just report back what would have been done")

// Deprecated
cmd.Flags().StringSliceVarP(&opts.services, "service", "s", []string{}, "service to release")
cmd.Flags().StringSliceVarP(&opts.services, "service", "s", []string{}, "Service to release")
cmd.Flags().MarkHidden("service")

return cmd
Expand Down
2 changes: 1 addition & 1 deletion cmd/fluxctl/root_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (opts *rootOpts) Command() *cobra.Command {
PersistentPreRunE: opts.PersistentPreRunE,
}
cmd.PersistentFlags().StringVarP(&opts.URL, "url", "u", "https://cloud.weave.works/api/flux",
fmt.Sprintf("base URL of the flux service; you can also set the environment variable %s", envVariableURL))
fmt.Sprintf("Base URL of the flux service; you can also set the environment variable %s", envVariableURL))
cmd.PersistentFlags().StringVarP(&opts.Token, "token", "t", "",
fmt.Sprintf("Weave Cloud service token; you can also set the environment variable %s or %s", envVariableCloudToken, envVariableToken))

Expand Down
2 changes: 1 addition & 1 deletion cmd/fluxctl/save_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (opts *saveOpts) Command() *cobra.Command {
),
RunE: opts.RunE,
}
cmd.Flags().StringVarP(&opts.path, "out", "o", "-", "output path for exported config; the default. '-' indicates stdout; if a directory is given, each item will be saved in a file under the directory")
cmd.Flags().StringVarP(&opts.path, "out", "o", "-", "Output path for exported config; the default. '-' indicates stdout; if a directory is given, each item will be saved in a file under the directory")
return cmd
}

Expand Down

0 comments on commit f6627cd

Please sign in to comment.