Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 3dc2d89

Browse files
committed
fixup! fixup! Add completions for env names
1 parent 6a41406 commit 3dc2d89

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cmd/coder/urls.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ func makeURLCmd() *cobra.Command {
2323
Short: "Interact with environment DevURLs",
2424
}
2525
lsCmd := &cobra.Command{
26-
Use: "ls [env_name]",
27-
Short: "List all DevURLs for an environment",
28-
Args: cobra.ExactArgs(1),
29-
RunE: makeListDevURLs(&outputFmt),
26+
Use: "ls [environment_name]",
27+
Short: "List all DevURLs for an environment",
28+
Args: cobra.ExactArgs(1),
29+
ValidArgs: getEnvsForCompletion(),
30+
RunE: makeListDevURLs(&outputFmt),
3031
}
3132
lsCmd.Flags().StringVarP(&outputFmt, "output", "o", "human", "human|json")
3233

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy