Skip to content

Commit

Permalink
ignore MarkHidden errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vilmibm committed Apr 21, 2020
1 parent 6e55e89 commit fcf2586
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions command/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,9 @@ func init() {
configSetCmd.Flags().StringP("host", "h", "", "Set per-host setting")

// TODO reveal and add usage once we properly support multiple hosts
err := configGetCmd.Flags().MarkHidden("host")

if err != nil {
panic("this should not happen")
}

_ = configGetCmd.Flags().MarkHidden("host")
// TODO reveal and add usage once we properly support multiple hosts
err = configSetCmd.Flags().MarkHidden("host")
if err != nil {
panic("this should not happen")
}
_ = configSetCmd.Flags().MarkHidden("host")
}

var configCmd = &cobra.Command{
Expand Down

0 comments on commit fcf2586

Please sign in to comment.