File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,13 @@ import (
15
15
)
16
16
17
17
func list () * cobra.Command {
18
- var (
19
- columns []string
20
- )
18
+ var columns []string
21
19
cmd := & cobra.Command {
22
20
Annotations : workspaceCommand ,
23
21
Use : "list" ,
24
22
Short : "List all workspaces" ,
25
23
Aliases : []string {"ls" },
24
+ Args : cobra .ExactArgs (0 ),
26
25
RunE : func (cmd * cobra.Command , args []string ) error {
27
26
client , err := createClient (cmd )
28
27
if err != nil {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
func show () * cobra.Command {
11
11
return & cobra.Command {
12
12
Annotations : workspaceCommand ,
13
- Use : "show" ,
13
+ Use : "show <workspace> " ,
14
14
Short : "Show details of a workspace's resources and agents" ,
15
15
Args : cobra .ExactArgs (1 ),
16
16
RunE : func (cmd * cobra.Command , args []string ) error {
You can’t perform that action at this time.
0 commit comments