Skip to content

Commit

Permalink
Restructure help sections for all commands (#860)
Browse files Browse the repository at this point in the history
* Restructure help sections for all commands

* Fix help test

* Renaming annotation key. Deferring removal of app init
  • Loading branch information
100mik authored Sep 20, 2022
1 parent e0954d8 commit 8b09317
Show file tree
Hide file tree
Showing 30 changed files with 149 additions and 42 deletions.
4 changes: 4 additions & 0 deletions cli/pkg/kctrl/cmd/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/cppforlife/color"
"github.com/spf13/cobra"
cmdcore "github.com/vmware-tanzu/carvel-kapp-controller/cli/pkg/kctrl/cmd/core"
kcv1alpha1 "github.com/vmware-tanzu/carvel-kapp-controller/pkg/apis/kappctrl/v1alpha1"
kcpkgv1alpha1 "github.com/vmware-tanzu/carvel-kapp-controller/pkg/apis/packaging/v1alpha1"
corev1 "k8s.io/api/core/v1"
Expand All @@ -18,6 +19,9 @@ func NewCmd() *cobra.Command {
Use: "app",
Aliases: []string{"a"},
Short: "App",
Annotations: map[string]string{
cmdcore.AppHelpGroup.Key: cmdcore.AppHelpGroup.Value,
},
}
return cmd
}
Expand Down
9 changes: 5 additions & 4 deletions cli/pkg/kctrl/cmd/app/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ func NewDeleteOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.L

func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command {
cmd := &cobra.Command{
Use: "delete",
Short: "Delete app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: ""},
Use: "delete",
Short: "Delete app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: "",
cmdcore.AppManagementCommandsHelpGroup.Key: cmdcore.AppManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
3 changes: 3 additions & 0 deletions cli/pkg/kctrl/cmd/app/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func NewGetCmd(o *GetOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
Aliases: []string{"g"},
Short: "Get details for app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{
cmdcore.AppManagementCommandsHelpGroup.Key: cmdcore.AppManagementCommandsHelpGroup.Value,
},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
9 changes: 5 additions & 4 deletions cli/pkg/kctrl/cmd/app/kick.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ func NewKickOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Log

func NewKickCmd(o *KickOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command {
cmd := &cobra.Command{
Use: "kick",
Short: "Trigger reconciliation for app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: ""},
Use: "kick",
Short: "Trigger reconciliation for app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: "",
cmdcore.AppManagementCommandsHelpGroup.Key: cmdcore.AppManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
3 changes: 3 additions & 0 deletions cli/pkg/kctrl/cmd/app/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Comman
Aliases: []string{"l", "ls"},
Short: "List Apps",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{
cmdcore.AppManagementCommandsHelpGroup.Key: cmdcore.AppManagementCommandsHelpGroup.Value,
},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
11 changes: 6 additions & 5 deletions cli/pkg/kctrl/cmd/app/pause.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ func NewPauseOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Lo

func NewPauseCmd(o *PauseOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command {
cmd := &cobra.Command{
Use: "pause",
Aliases: []string{"p"},
Short: "Pause reconciliation for app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: ""},
Use: "pause",
Aliases: []string{"p"},
Short: "Pause reconciliation for app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: "",
cmdcore.AppManagementCommandsHelpGroup.Key: cmdcore.AppManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
11 changes: 6 additions & 5 deletions cli/pkg/kctrl/cmd/app/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ func NewStatusOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.L

func NewStatusCmd(o *StatusOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command {
cmd := &cobra.Command{
Use: "status",
Aliases: []string{"s"},
Short: "View status of app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: ""},
Use: "status",
Aliases: []string{"s"},
Short: "View status of app",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{TTYByDefaultKey: "",
cmdcore.AppManagementCommandsHelpGroup.Key: cmdcore.AppManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
32 changes: 31 additions & 1 deletion cli/pkg/kctrl/cmd/core/help_sections.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

const (
cmdGroupKey = "kapp-group"
cmdGroupKey = "kctrl-group"
)

var (
Expand All @@ -17,6 +17,36 @@ var (
Value: "package",
Title: "Package Commands:",
}
PackageRepoHelpGroup = cobrautil.HelpSection{
Key: cmdGroupKey,
Value: "repository",
Title: "Package Repository Commands:",
}
AppHelpGroup = cobrautil.HelpSection{
Key: cmdGroupKey,
Value: "app",
Title: "App Commands:",
}
DevHelpGroup = cobrautil.HelpSection{
Key: cmdGroupKey,
Value: "dev",
Title: "Development Commands:",
}
PackageManagementCommandsHelpGroup = cobrautil.HelpSection{
Key: cmdGroupKey,
Value: "package-management",
Title: "Package Management Commands:",
}
PackageAuthoringCommandsHelpGroup = cobrautil.HelpSection{
Key: cmdGroupKey,
Value: "package-authoring",
Title: "Package Authoring Commands:",
}
AppManagementCommandsHelpGroup = cobrautil.HelpSection{
Key: cmdGroupKey,
Value: "app-management",
Title: "App Management Commands:",
}
RestOfCommandsHelpGroup = cobrautil.HelpSection{
Key: cmdGroupKey,
Value: "", // default
Expand Down
3 changes: 3 additions & 0 deletions cli/pkg/kctrl/cmd/dev/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func NewCmd(o *DevOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command {
Use: "dev",
Short: "Deploy App CRs and packaging CRs",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{
cmdcore.DevHelpGroup.Key: cmdcore.DevHelpGroup.Value,
},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
22 changes: 22 additions & 0 deletions cli/pkg/kctrl/cmd/kctrl.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func NewKctrlCmd(o *KctrlOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Comm

cmd.SetUsageTemplate(cobrautil.HelpSectionsUsageTemplate([]cobrautil.HelpSection{
cmdcore.PackageHelpGroup,
cmdcore.AppHelpGroup,
cmdcore.DevHelpGroup,
cmdcore.RestOfCommandsHelpGroup,
}))

Expand All @@ -85,11 +87,21 @@ func NewKctrlCmd(o *KctrlOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Comm
cmd.AddCommand(NewVersionCmd(NewVersionOptions(o.ui, o.depsFactory), flagsFactory))

pkgCmd := cmdpkg.NewCmd()
pkgCmd.SetUsageTemplate(cobrautil.HelpSectionsUsageTemplate([]cobrautil.HelpSection{
cmdcore.PackageManagementCommandsHelpGroup,
cmdcore.PackageAuthoringCommandsHelpGroup,
cmdcore.PackageRepoHelpGroup,
cmdcore.RestOfCommandsHelpGroup,
}))
AddPackageCommands(o, pkgCmd, flagsFactory, pkgOpts)

cmd.AddCommand(pkgCmd)

appCmd := app.NewCmd()
appCmd.SetUsageTemplate(cobrautil.HelpSectionsUsageTemplate([]cobrautil.HelpSection{
cmdcore.AppManagementCommandsHelpGroup,
cmdcore.RestOfCommandsHelpGroup,
}))
appCmd.AddCommand(app.NewGetCmd(app.NewGetOptions(o.ui, o.depsFactory, o.logger), flagsFactory))
appCmd.AddCommand(app.NewListCmd(app.NewListOptions(o.ui, o.depsFactory, o.logger), flagsFactory))
appCmd.AddCommand(app.NewStatusCmd(app.NewStatusOptions(o.ui, o.depsFactory, o.logger), flagsFactory))
Expand Down Expand Up @@ -167,6 +179,10 @@ func configureTTY(o *KctrlOptions, cmd *cobra.Command) {

func AddPackageCommands(o *KctrlOptions, cmd *cobra.Command, flagsFactory cmdcore.FlagsFactory, opts cmdcore.PackageCommandTreeOpts) {
pkgrepoCmd := pkgrepo.NewCmd()
pkgrepoCmd.SetUsageTemplate(cobrautil.HelpSectionsUsageTemplate([]cobrautil.HelpSection{
cmdcore.PackageManagementCommandsHelpGroup,
cmdcore.PackageAuthoringCommandsHelpGroup,
}))
pkgrepoCmd.AddCommand(pkgrepo.NewListCmd(pkgrepo.NewListOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))
pkgrepoCmd.AddCommand(pkgrepo.NewGetCmd(pkgrepo.NewGetOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))
pkgrepoCmd.AddCommand(pkgrepo.NewDeleteCmd(pkgrepo.NewDeleteOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))
Expand All @@ -176,6 +192,9 @@ func AddPackageCommands(o *KctrlOptions, cmd *cobra.Command, flagsFactory cmdcor
pkgrepoCmd.AddCommand(pkgreporel.NewReleaseCmd(pkgreporel.NewReleaseOptions(o.ui, o.depsFactory, o.logger)))

pkgiCmd := pkginst.NewCmd()
pkgiCmd.SetUsageTemplate(cobrautil.HelpSectionsUsageTemplate([]cobrautil.HelpSection{
cmdcore.PackageManagementCommandsHelpGroup,
}))
pkgiCmd.AddCommand(pkginst.NewListCmd(pkginst.NewListOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))
pkgiCmd.AddCommand(pkginst.NewGetCmd(pkginst.NewGetOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))
pkgiCmd.AddCommand(pkginst.NewCreateCmd(pkginst.NewCreateOrUpdateOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))
Expand All @@ -186,6 +205,9 @@ func AddPackageCommands(o *KctrlOptions, cmd *cobra.Command, flagsFactory cmdcor
pkgiCmd.AddCommand(pkginst.NewStatusCmd(pkginst.NewStatusOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))

pkgaCmd := pkgavail.NewCmd()
pkgaCmd.SetUsageTemplate(cobrautil.HelpSectionsUsageTemplate([]cobrautil.HelpSection{
cmdcore.PackageManagementCommandsHelpGroup,
}))
pkgaCmd.AddCommand(pkgavail.NewListCmd(pkgavail.NewListOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))
pkgaCmd.AddCommand(pkgavail.NewGetCmd(pkgavail.NewGetOptions(o.ui, o.depsFactory, o.logger, opts), flagsFactory))

Expand Down
4 changes: 4 additions & 0 deletions cli/pkg/kctrl/cmd/package/available/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ package available

import (
"github.com/spf13/cobra"
cmdcore "github.com/vmware-tanzu/carvel-kapp-controller/cli/pkg/kctrl/cmd/core"
)

func NewCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "available",
Aliases: []string{"a"},
Short: "Manage available packages",
Annotations: map[string]string{
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value,
},
}
return cmd
}
3 changes: 2 additions & 1 deletion cli/pkg/kctrl/cmd/package/available/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func NewGetCmd(o *GetOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
[]string{"package", "available", "get", "-p", "cert-manager.community.tanzu.vmware.com/1.0.0", "--values-schema"}},
}.Description("-p", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{"table": ""},
Annotations: map[string]string{"table": "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)
Expand Down
3 changes: 2 additions & 1 deletion cli/pkg/kctrl/cmd/package/available/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Comman
[]string{"package", "available", "list", "-p", "cert-manager.community.tanzu.vmware.com"}},
}.Description("-p", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{"table": ""},
Annotations: map[string]string{"table": "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}
o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)
cmd.Flags().BoolVarP(&o.AllNamespaces, "all-namespaces", "A", false, "List available packages in all namespaces")
Expand Down
3 changes: 3 additions & 0 deletions cli/pkg/kctrl/cmd/package/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func NewInitCmd(o *InitOptions) *cobra.Command {
Use: "init",
Short: "Initialize Package (experimental)",
RunE: func(_ *cobra.Command, _ []string) error { return o.Run() },
Annotations: map[string]string{
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageAuthoringCommandsHelpGroup.Value,
},
}

cmd.Flags().StringVar(&o.chdir, "chdir", "", "Location of the working directory")
Expand Down
4 changes: 4 additions & 0 deletions cli/pkg/kctrl/cmd/package/installed/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ package installed

import (
"github.com/spf13/cobra"
cmdcore "github.com/vmware-tanzu/carvel-kapp-controller/cli/pkg/kctrl/cmd/core"
)

func NewCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "installed",
Aliases: []string{"i"},
Short: "Manage installed packages",
Annotations: map[string]string{
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value,
},
}
return cmd
}
9 changes: 6 additions & 3 deletions cli/pkg/kctrl/cmd/package/installed/create_or_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func NewCreateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *
[]string{"package", "installed", "create", "-i", "cert-man", "-p", "cert-manager.community.tanzu.vmware.com", "--version", "1.6.1", "--service-account-name", "existing-sa"}},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{cmdapp.TTYByDefaultKey: ""},
Annotations: map[string]string{cmdapp.TTYByDefaultKey: "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}
o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)
o.SecureNamespaceFlags.Set(cmd)
Expand Down Expand Up @@ -126,7 +127,8 @@ func NewInstallCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory)
[]string{"package", "install", "-i", "cert-man", "-p", "cert-manager.community.tanzu.vmware.com", "--version", "1.6.1", "--service-account-name", "existing-sa"}},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{cmdapp.TTYByDefaultKey: ""},
Annotations: map[string]string{cmdapp.TTYByDefaultKey: "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}
o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)
o.SecureNamespaceFlags.Set(cmd)
Expand Down Expand Up @@ -169,7 +171,8 @@ func NewUpdateCmd(o *CreateOrUpdateOptions, flagsFactory cmdcore.FlagsFactory) *
[]string{"package", "installed", "update", "-i", "cert-man", "--values", "false"}},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{cmdapp.TTYByDefaultKey: ""},
Annotations: map[string]string{cmdapp.TTYByDefaultKey: "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}
o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)
o.SecureNamespaceFlags.Set(cmd)
Expand Down
3 changes: 2 additions & 1 deletion cli/pkg/kctrl/cmd/package/installed/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ func NewDeleteCmd(o *DeleteOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Co
[]string{"package", "installed", "delete", "-i", "cert-man"}},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{cmdapp.TTYByDefaultKey: ""},
Annotations: map[string]string{cmdapp.TTYByDefaultKey: "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}
o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)

Expand Down
3 changes: 2 additions & 1 deletion cli/pkg/kctrl/cmd/package/installed/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ func NewGetCmd(o *GetOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command
[]string{"package", "installed", "get", "-i", "cert-man", "--values-file-output", "values.yml"}},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{"table": ""},
Annotations: map[string]string{"table": "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}
o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)

Expand Down
3 changes: 2 additions & 1 deletion cli/pkg/kctrl/cmd/package/installed/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Comman
[]string{"package", "installed", "list", "-A"}},
}.Description("", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{"table": ""},
Annotations: map[string]string{"table": "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}
o.NamespaceFlags.SetWithPackageCommandTreeOpts(cmd, flagsFactory, o.pkgCmdTreeOpts)
cmd.Flags().BoolVarP(&o.AllNamespaces, "all-namespaces", "A", false, "List installed packages in all namespaces")
Expand Down
6 changes: 4 additions & 2 deletions cli/pkg/kctrl/cmd/package/installed/pause_or_kick.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ func NewPauseCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobr
},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{cmdapp.TTYByDefaultKey: ""},
Annotations: map[string]string{cmdapp.TTYByDefaultKey: "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand All @@ -78,7 +79,8 @@ func NewKickCmd(o *PauseOrKickOptions, flagsFactory cmdcore.FlagsFactory) *cobra
},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{cmdapp.TTYByDefaultKey: ""},
Annotations: map[string]string{cmdapp.TTYByDefaultKey: "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
3 changes: 2 additions & 1 deletion cli/pkg/kctrl/cmd/package/installed/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func NewStatusCmd(o *StatusOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Co
},
}.Description("-i", o.pkgCmdTreeOpts),
SilenceUsage: true,
Annotations: map[string]string{cmdapp.TTYByDefaultKey: ""},
Annotations: map[string]string{cmdapp.TTYByDefaultKey: "",
cmdcore.PackageManagementCommandsHelpGroup.Key: cmdcore.PackageManagementCommandsHelpGroup.Value},
}

o.NamespaceFlags.Set(cmd, flagsFactory)
Expand Down
3 changes: 3 additions & 0 deletions cli/pkg/kctrl/cmd/package/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func NewReleaseCmd(o *ReleaseOptions) *cobra.Command {
Use: "release",
Short: "Release package (experimental)",
RunE: func(cmd *cobra.Command, args []string) error { return o.Run() },
Annotations: map[string]string{
cmdcore.PackageAuthoringCommandsHelpGroup.Key: cmdcore.PackageAuthoringCommandsHelpGroup.Value,
},
}

cmd.Flags().StringVarP(&o.pkgVersion, "version", "v", "", "Version to be released")
Expand Down
Loading

0 comments on commit 8b09317

Please sign in to comment.