fix: Improve coder list and show CLI help (#3167)

This commit is contained in:
Mathias Fredriksson
2022-07-25 16:56:20 +03:00
committed by GitHub
parent 233aa17848
commit d7ec407a7c
2 changed files with 3 additions and 4 deletions

View File

@ -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 {

View File

@ -10,7 +10,7 @@ import (
func show() *cobra.Command {
return &cobra.Command{
Annotations: workspaceCommand,
Use: "show",
Use: "show <workspace>",
Short: "Show details of a workspace's resources and agents",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {