This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree 8 files changed +35
-49
lines changed
8 files changed +35
-49
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ func makeConfigSSHCmd() cli.Command {
26
26
27
27
return cli.Command {
28
28
Name : "config-ssh" ,
29
- UsageText : " " ,
30
- Description : "add your Coder Enterprise environments to ~/.ssh/ config" ,
29
+ Usage : "Configure SSH to access Coder environments " ,
30
+ Description : "Inject the proper OpenSSH configuration into your local SSH config file. " ,
31
31
Action : configSSH (& configpath , & remove ),
32
32
Flags : []cli.Flag {
33
33
cli.StringFlag {
Original file line number Diff line number Diff line change @@ -9,14 +9,13 @@ import (
9
9
func makeEnvsCommand () cli.Command {
10
10
return cli.Command {
11
11
Name : "envs" ,
12
- UsageText : " " ,
13
- Description : "interact with Coder environments" ,
12
+ Usage : "Interact with Coder environments " ,
13
+ Description : "Perform operations on the Coder environments owned by the active user. " ,
14
14
Subcommands : []cli.Command {
15
15
{
16
16
Name : "ls" ,
17
17
Usage : "list all environments owned by the active user" ,
18
- UsageText : "" ,
19
- Description : "" ,
18
+ Description : "List all Coder environments owned by the active user." ,
20
19
ArgsUsage : "[...flags]>" ,
21
20
Action : func (c * cli.Context ) {
22
21
entClient := requireAuth ()
Original file line number Diff line number Diff line change @@ -16,13 +16,12 @@ import (
16
16
)
17
17
18
18
func makeLoginCmd () cli.Command {
19
- cmd := cli.Command {
20
- Name : "login" ,
21
- Usage : "[Coder Enterprise URL eg. http://my.coder.domain/ ] " ,
22
- Description : "authenticate this client for future operations " ,
23
- Action : login ,
19
+ return cli.Command {
20
+ Name : "login" ,
21
+ Usage : "Authenticate this client for future operations " ,
22
+ ArgsUsage : "[Coder Enterprise URL eg. http://my.coder.domain/] " ,
23
+ Action : login ,
24
24
}
25
- return cmd
26
25
}
27
26
28
27
func login (c * cli.Context ) {
Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ import (
11
11
12
12
func makeLogoutCmd () cli.Command {
13
13
return cli.Command {
14
- Name : "logout" ,
15
- //Usage: "",
16
- Description : "remove local authentication credentials (if any)" ,
17
- Action : logout ,
14
+ Name : "logout" ,
15
+ Usage : "Remove local authentication credentials if any exist" ,
16
+ Action : logout ,
18
17
}
19
18
}
20
19
Original file line number Diff line number Diff line change @@ -17,27 +17,26 @@ import (
17
17
func makeSecretsCmd () cli.Command {
18
18
return cli.Command {
19
19
Name : "secrets" ,
20
- Usage : "" ,
20
+ Usage : "Interact with Coder Secrets " ,
21
21
Description : "Interact with secrets objects owned by the active user." ,
22
22
Subcommands : []cli.Command {
23
23
{
24
- Name : "ls" ,
25
- Usage : "" ,
26
- Description : "list all secrets owned by the active user" ,
27
- Action : listSecrets ,
24
+ Name : "ls" ,
25
+ Usage : "List all secrets owned by the active user" ,
26
+ Action : listSecrets ,
28
27
},
29
28
makeCreateSecret (),
30
29
{
31
- Name : "rm" ,
32
- Usage : " " ,
33
- Description : "" ,
34
- Action : removeSecret ,
30
+ Name : "rm" ,
31
+ Usage : "Remove a secret by name " ,
32
+ ArgsUsage : "[secret_name] " ,
33
+ Action : removeSecret ,
35
34
},
36
35
{
37
- Name : "view" ,
38
- Usage : " " ,
39
- Description : "" ,
40
- Action : viewSecret ,
36
+ Name : "view" ,
37
+ Usage : "View a secret by name " ,
38
+ ArgsUsage : "[secret_name] " ,
39
+ Action : viewSecret ,
41
40
},
42
41
},
43
42
Flags : nil ,
@@ -54,7 +53,7 @@ func makeCreateSecret() cli.Command {
54
53
55
54
return cli.Command {
56
55
Name : "create" ,
57
- Usage : "create a new secret" ,
56
+ Usage : "Create a new secret" ,
58
57
Description : "Create a new secret object to store application secrets and access them securely from within your environments." ,
59
58
ArgsUsage : "[secret_name]" ,
60
59
Before : func (c * cli.Context ) error {
Original file line number Diff line number Diff line change @@ -22,12 +22,11 @@ import (
22
22
func makeShellCmd () cli.Command {
23
23
return cli.Command {
24
24
Name : "sh" ,
25
- Usage : "<env name> [<command [args...]>]" ,
26
- Description : "execute a remote command on the environment\\ nIf no command is specified, the default shell is opened." ,
25
+ Usage : "Open a shell and execute commands in a Coder environment" ,
26
+ Description : "Execute a remote command on the environment\\ nIf no command is specified, the default shell is opened." ,
27
+ ArgsUsage : "[env_name] [<command [args...]>]" ,
27
28
SkipFlagParsing : true ,
28
29
SkipArgReorder : true ,
29
- UsageText : "" ,
30
- ArgsUsage : "" ,
31
30
Action : shell ,
32
31
}
33
32
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ func makeSyncCmd() cli.Command {
19
19
var init bool
20
20
return cli.Command {
21
21
Name : "sync" ,
22
- Usage : "synchronize local files to a Coder environment" ,
22
+ Usage : "Synchronize local files to a Coder environment" ,
23
23
Description : "Establish a one way directory sync to a Coder environment." ,
24
24
ArgsUsage : "[local directory] [<env name>:<remote directory>]" ,
25
25
Before : func (c * cli.Context ) error {
Original file line number Diff line number Diff line change @@ -14,28 +14,19 @@ import (
14
14
func makeUsersCmd () cli.Command {
15
15
var output string
16
16
return cli.Command {
17
- Name : "users" ,
18
- ShortName : "" ,
19
- Aliases : nil ,
20
- Usage : "[subcommand] <flags>" ,
21
- UsageText : "" ,
22
- Description : "" ,
23
- ArgsUsage : "" ,
24
- Action : nil ,
25
- OnUsageError : nil ,
17
+ Name : "users" ,
18
+ Usage : "Interact with Coder user accounts" ,
19
+ ArgsUsage : "[subcommand] <flags>" ,
26
20
Subcommands : []cli.Command {
27
21
{
28
22
Name : "ls" ,
29
- Usage : "" ,
30
- UsageText : "" ,
23
+ Usage : "list all user accounts" ,
31
24
Description : "" ,
32
- ArgsUsage : "" ,
33
- Category : "" ,
34
25
Action : listUsers (& output ),
35
26
Flags : []cli.Flag {
36
27
cli.StringFlag {
37
28
Name : "output" ,
38
- Usage : "" ,
29
+ Usage : "(json | human) " ,
39
30
Required : false ,
40
31
Value : "human" ,
41
32
Destination : & output ,
You can’t perform that action at this time.
0 commit comments