From ebc140935e9e053665fede5e92ee297b48345758 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Mon, 25 Jul 2022 16:15:32 +0300 Subject: [PATCH] fix: Improve coder list and show CLI help --- cli/list.go | 5 ++--- cli/show.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cli/list.go b/cli/list.go index c69308a2f6ccd..11c39362781fb 100644 --- a/cli/list.go +++ b/cli/list.go @@ -15,14 +15,13 @@ import ( ) func list() *cobra.Command { - var ( - columns []string - ) + var columns []string cmd := &cobra.Command{ Annotations: workspaceCommand, Use: "list", Short: "List all workspaces", Aliases: []string{"ls"}, + Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { client, err := createClient(cmd) if err != nil { diff --git a/cli/show.go b/cli/show.go index 2b1213adc1f21..145e8d6e3f3d0 100644 --- a/cli/show.go +++ b/cli/show.go @@ -10,7 +10,7 @@ import ( func show() *cobra.Command { return &cobra.Command{ Annotations: workspaceCommand, - Use: "show", + Use: "show ", Short: "Show details of a workspace's resources and agents", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error {