Skip to content

Commit a962081

Browse files
committed
chore: hide dev based flags for console, dashboard, ws, and api
1 parent 29e2801 commit a962081

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/cmd/root.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,13 @@ func init() {
9898

9999
// Hidden configuration flags, useful for dev/debugging
100100
rootCmd.PersistentFlags().StringVar(&Config.APIBaseURL, "api-base", "", fmt.Sprintf("Sets the API base URL (default \"%s\")", hookdeck.DefaultAPIBaseURL))
101+
rootCmd.PersistentFlags().MarkHidden("api-base")
101102
rootCmd.PersistentFlags().StringVar(&Config.DashboardBaseURL, "dashboard-base", "", fmt.Sprintf("Sets the web dashboard base URL (default \"%s\")", hookdeck.DefaultDashboardBaseURL))
103+
rootCmd.PersistentFlags().MarkHidden("dashboard-base")
102104
rootCmd.PersistentFlags().StringVar(&Config.ConsoleBaseURL, "console-base", "", fmt.Sprintf("Sets the web console base URL (default \"%s\")", hookdeck.DefaultConsoleBaseURL))
105+
rootCmd.PersistentFlags().MarkHidden("console-base")
103106
rootCmd.PersistentFlags().StringVar(&Config.WSBaseURL, "ws-base", "", fmt.Sprintf("Sets the Websocket base URL (default \"%s\")", hookdeck.DefaultWebsocektURL))
107+
rootCmd.PersistentFlags().MarkHidden("ws-base")
104108

105109
rootCmd.Flags().BoolP("version", "v", false, "Get the version of the Hookdeck CLI")
106110

0 commit comments

Comments
 (0)