Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita89d690

Browse files
authored
fix: show help on wraper commands (#4402)
1 parentf5df548 commita89d690

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

‎cli/parameters.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ func parameters() *cobra.Command {
2020
// constructing curl requests.
2121
Hidden:true,
2222
Aliases: []string{"params"},
23+
RunE:func(cmd*cobra.Command,args []string)error {
24+
returncmd.Help()
25+
},
2326
}
2427
cmd.AddCommand(
2528
parameterList(),

‎cli/schedule.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func schedules() *cobra.Command {
5858
Annotations:workspaceCommand,
5959
Use:"schedule { show | start | stop | override } <workspace>",
6060
Short:"Schedule automated start and stop times for workspaces",
61+
RunE:func(cmd*cobra.Command,args []string)error {
62+
returncmd.Help()
63+
},
6164
}
6265

6366
scheduleCmd.AddCommand(

‎cli/state.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ func state() *cobra.Command {
1717
cmd:=&cobra.Command{
1818
Use:"state",
1919
Short:"Manually manage Terraform state to fix broken workspaces",
20+
RunE:func(cmd*cobra.Command,args []string)error {
21+
returncmd.Help()
22+
},
2023
}
2124
cmd.AddCommand(statePull(),statePush())
2225
returncmd

‎cli/templates.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ func templates() *cobra.Command {
3030
Command:"coder templates push my-template",
3131
},
3232
),
33+
RunE:func(cmd*cobra.Command,args []string)error {
34+
returncmd.Help()
35+
},
3336
}
3437
cmd.AddCommand(
3538
templateCreate(),

‎cli/templateversions.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ func templateVersions() *cobra.Command {
2424
Command:"coder templates versions list my-template",
2525
},
2626
),
27+
RunE:func(cmd*cobra.Command,args []string)error {
28+
returncmd.Help()
29+
},
2730
}
2831
cmd.AddCommand(
2932
templateVersionsList(),

‎cli/tokens.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ func tokens() *cobra.Command {
3232
Command:"coder tokens rm WuoWs4ZsMX",
3333
},
3434
),
35+
RunE:func(cmd*cobra.Command,args []string)error {
36+
returncmd.Help()
37+
},
3538
}
3639
cmd.AddCommand(
3740
createToken(),

‎cli/users.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ func users() *cobra.Command {
1111
Short:"Manage users",
1212
Use:"users",
1313
Aliases: []string{"user"},
14+
RunE:func(cmd*cobra.Command,args []string)error {
15+
returncmd.Help()
16+
},
1417
}
1518
cmd.AddCommand(
1619
userCreate(),

‎enterprise/cli/features.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func features() *cobra.Command {
2121
Short:"List Enterprise features",
2222
Use:"features",
2323
Aliases: []string{"feature"},
24+
RunE:func(cmd*cobra.Command,args []string)error {
25+
returncmd.Help()
26+
},
2427
}
2528
cmd.AddCommand(
2629
featuresList(),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp