Skip to content

Commit

Permalink
chore: hide dev based flags for console, dashboard, ws, and api
Browse files Browse the repository at this point in the history
  • Loading branch information
leggetter committed Aug 5, 2024
1 parent 29e2801 commit a962081
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ func init() {

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

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

Expand Down

0 comments on commit a962081

Please sign in to comment.