Skip to content

Commit ee6d3c0

Browse files
committed
Change command to urls
1 parent 96cc93b commit ee6d3c0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cmd/coder/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (r *rootCmd) Subcommands() []cli.Command {
3636
&logoutCmd{},
3737
&shellCmd{},
3838
&syncCmd{},
39-
&urlCmd{},
39+
&urlsCmd{},
4040
&versionCmd{},
4141
&configSSHCmd{},
4242
}

cmd/coder/url.go renamed to cmd/coder/urls.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ import (
1313
"go.coder.com/flog"
1414
)
1515

16-
type urlCmd struct{}
16+
type urlsCmd struct{}
1717

1818
type DevURL struct {
1919
URL string `json:"url"`
2020
Port string `json:"port"`
2121
Access string `json:"access"`
2222
}
2323

24-
func (cmd urlCmd) Spec() cli.CommandSpec {
24+
func (cmd urlsCmd) Spec() cli.CommandSpec {
2525
return cli.CommandSpec{
26-
Name: "url",
27-
Usage: "<env name> <port>",
28-
Desc: "get a development url for external access",
26+
Name: "urls",
27+
Usage: "<env name>",
28+
Desc: "get all development urls for external access",
2929
}
3030
}
3131

32-
func (cmd urlCmd) Run(fl *pflag.FlagSet) {
32+
func (cmd urlsCmd) Run(fl *pflag.FlagSet) {
3333
var envName = fl.Arg(0)
3434

3535
if envName == "" {

0 commit comments

Comments
 (0)