Skip to content

Commit d7ec407

Browse files
authored
fix: Improve coder list and show CLI help (#3167)
1 parent 233aa17 commit d7ec407

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cli/list.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ import (
1515
)
1616

1717
func list() *cobra.Command {
18-
var (
19-
columns []string
20-
)
18+
var columns []string
2119
cmd := &cobra.Command{
2220
Annotations: workspaceCommand,
2321
Use: "list",
2422
Short: "List all workspaces",
2523
Aliases: []string{"ls"},
24+
Args: cobra.ExactArgs(0),
2625
RunE: func(cmd *cobra.Command, args []string) error {
2726
client, err := createClient(cmd)
2827
if err != nil {

cli/show.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func show() *cobra.Command {
1111
return &cobra.Command{
1212
Annotations: workspaceCommand,
13-
Use: "show",
13+
Use: "show <workspace>",
1414
Short: "Show details of a workspace's resources and agents",
1515
Args: cobra.ExactArgs(1),
1616
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)