mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: show help on wraper commands (#4402)
This commit is contained in:
@@ -20,6 +20,9 @@ func parameters() *cobra.Command {
|
||||
// constructing curl requests.
|
||||
Hidden: true,
|
||||
Aliases: []string{"params"},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
}
|
||||
cmd.AddCommand(
|
||||
parameterList(),
|
||||
|
||||
@@ -58,6 +58,9 @@ func schedules() *cobra.Command {
|
||||
Annotations: workspaceCommand,
|
||||
Use: "schedule { show | start | stop | override } <workspace>",
|
||||
Short: "Schedule automated start and stop times for workspaces",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
}
|
||||
|
||||
scheduleCmd.AddCommand(
|
||||
|
||||
@@ -17,6 +17,9 @@ func state() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "state",
|
||||
Short: "Manually manage Terraform state to fix broken workspaces",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
}
|
||||
cmd.AddCommand(statePull(), statePush())
|
||||
return cmd
|
||||
|
||||
@@ -30,6 +30,9 @@ func templates() *cobra.Command {
|
||||
Command: "coder templates push my-template",
|
||||
},
|
||||
),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
}
|
||||
cmd.AddCommand(
|
||||
templateCreate(),
|
||||
|
||||
@@ -24,6 +24,9 @@ func templateVersions() *cobra.Command {
|
||||
Command: "coder templates versions list my-template",
|
||||
},
|
||||
),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
}
|
||||
cmd.AddCommand(
|
||||
templateVersionsList(),
|
||||
|
||||
@@ -32,6 +32,9 @@ func tokens() *cobra.Command {
|
||||
Command: "coder tokens rm WuoWs4ZsMX",
|
||||
},
|
||||
),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
}
|
||||
cmd.AddCommand(
|
||||
createToken(),
|
||||
|
||||
@@ -11,6 +11,9 @@ func users() *cobra.Command {
|
||||
Short: "Manage users",
|
||||
Use: "users",
|
||||
Aliases: []string{"user"},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
}
|
||||
cmd.AddCommand(
|
||||
userCreate(),
|
||||
|
||||
Reference in New Issue
Block a user