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

Commit7e9f921

Browse files
committed
fixup! Add list users command
Change-Id: I74d5a3daec28dc93cc00cb4b3f97b2d205c6a67d
1 parent0cf451b commit7e9f921

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎cmd/coder/users.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (cmd *listCmd) Run(fl *pflag.FlagSet) {
5858

5959
switchcmd.outputFmt {
6060
case"human":
61-
w:=tabwriter.NewWriter(os.Stdout,0,0,3,' ',tabwriter.AlignRight)
61+
w:=tabwriter.NewWriter(os.Stdout,0,0,3,' ',0)
6262
for_,u:=rangeusers {
6363
_,err=fmt.Fprintln(w,tabDelimited(u))
6464
iferr!=nil {
@@ -75,7 +75,7 @@ func (cmd *listCmd) Run(fl *pflag.FlagSet) {
7575
flog.Fatal("failed to encode users to json: %v",err)
7676
}
7777
default:
78-
flog.Fatal("unsupported output type %q",cmd.outputFmt)
78+
flog.Fatal("unsupported output type %q.\nusage: --output (json | human)",cmd.outputFmt)
7979
}
8080

8181
}
@@ -86,7 +86,7 @@ func (cmd *listCmd) RegisterFlags(fl *pflag.FlagSet) {
8686

8787
func (cmd*listCmd)Spec() cli.CommandSpec {
8888
return cli.CommandSpec{
89-
Name:"list",
89+
Name:"ls",
9090
Usage:"<flags>",
9191
Desc:"list all users",
9292
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp