Skip to content

Commit

Permalink
activate: short desc fix; delete: add ref to cobra's issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Jul 21, 2020
1 parent 75e68ee commit 2e40c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/activate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// activateCmd represents the activate command
var activateCmd = &cobra.Command{
Use: "activate <version>",
Short: "Activate version. Version should be installed.",
Short: "Activate version",
Long: `Activate version. Version should be installed.`,
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
Expand Down
1 change: 1 addition & 0 deletions cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var deleteCmd = &cobra.Command{
}
if !installed {
// suppress help output
// https://github.com/spf13/cobra/issues/340
cmd.SilenceUsage = true
cmd.SilenceErrors = true
return errors.New("Version " + version + " is not installed")
Expand Down

0 comments on commit 2e40c50

Please sign in to comment.