From 2b5a174e3b6544ddaabb78ea3a2f30d3634ff05a Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Thu, 14 Jan 2021 09:52:17 +0100 Subject: [PATCH] fix(cli): help command offline Added an annotation to mark the help command to work also disconnected from cluster Closes #1906 --- pkg/cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cmd/root.go b/pkg/cmd/root.go index c56d3690ef..183a7a8e53 100644 --- a/pkg/cmd/root.go +++ b/pkg/cmd/root.go @@ -160,6 +160,7 @@ func addHelpSubCommands(cmd *cobra.Command, options *RootCmdOptions) error { if helpCmd == nil { return errors.New("could not find any configured help command") } + helpCmd.Annotations = map[string]string{offlineCommandLabel: "true"} helpCmd.AddCommand(cmdOnly(newTraitHelpCmd(options)))