Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamplata committed Jan 10, 2025
1 parent 054f23e commit 88dd9a9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,14 @@ func runCmd(ctx context.Context, ver cmdutil.Version) error {
whoami.WhoamiCmd(ch),
)

if ch.IsDev() {
// Internal commands - hidden from help menu
cmdutil.AddGroup(rootCmd, "Internal",
admin.AdminCmd(ch),
runtime.RuntimeCmd(ch),
devtool.DevtoolCmd(ch),
sudo.SudoCmd(ch),
verifyInstallCmd(ch),
)
}
// Internal commands - hidden from help menu
cmdutil.AddGroup(rootCmd, "Internal",
admin.AdminCmd(ch),
runtime.RuntimeCmd(ch),
devtool.DevtoolCmd(ch),
sudo.SudoCmd(ch),
verifyInstallCmd(ch),
)

// Additional sub-commands
rootCmd.AddCommand(
Expand Down

0 comments on commit 88dd9a9

Please sign in to comment.