Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commitee6d3c0

Browse files
committed
Change command tourls
1 parent96cc93b commitee6d3c0

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.gorenamed 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-
typeurlCmdstruct{}
16+
typeurlsCmdstruct{}
1717

1818
typeDevURLstruct {
1919
URLstring`json:"url"`
2020
Portstring`json:"port"`
2121
Accessstring`json:"access"`
2222
}
2323

24-
func (cmdurlCmd)Spec() cli.CommandSpec {
24+
func (cmdurlsCmd)Spec() cli.CommandSpec {
2525
return cli.CommandSpec{
26-
Name:"url",
27-
Usage:"<env name> <port>",
28-
Desc:"geta developmenturl for external access",
26+
Name:"urls",
27+
Usage:"<env name>",
28+
Desc:"getall developmenturls for external access",
2929
}
3030
}
3131

32-
func (cmdurlCmd)Run(fl*pflag.FlagSet) {
32+
func (cmdurlsCmd)Run(fl*pflag.FlagSet) {
3333
varenvName=fl.Arg(0)
3434

3535
ifenvName=="" {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp