Skip to content

Commit a1ebc64

Browse files
committed
fix: experimentalTuiCmd is only applied in local environment
1 parent 9169ec4 commit a1ebc64

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

go/core/cli/cmd/kagent/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,12 @@ Examples:
439439
},
440440
}
441441

442-
rootCmd.AddCommand(installCmd, uninstallCmd, invokeCmd, bugReportCmd, versionCmd, dashboardCmd, getCmd, initCmd, buildCmd, deployCmd, addMcpCmd, runCmd, experimentalTuiCmd, mcp.NewMCPCmd(), envdoc.NewEnvCmd())
442+
commands := []*cobra.Command{installCmd, uninstallCmd, invokeCmd, bugReportCmd, versionCmd, dashboardCmd, getCmd, initCmd, buildCmd, deployCmd, addMcpCmd, runCmd, mcp.NewMCPCmd(), envdoc.NewEnvCmd()}
443+
if os.Getenv("ENVIRONMENT") == "local" {
444+
commands = append(commands, experimentalTuiCmd)
445+
}
446+
447+
rootCmd.AddCommand(commands...)
443448

444449
// Initialize config
445450
if err := config.Init(); err != nil {

0 commit comments

Comments
 (0)