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

Commit89febea

Browse files
committed
add a shorthand flag for the initiator
1 parentc0d3650 commit89febea

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

‎cli/provisionerjobs.go‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ func (r *RootCmd) provisionerJobsList() *serpent.Command {
135135
Value:serpent.Int64Of(&limit),
136136
},
137137
{
138-
Flag:"initiator",
139-
Env:"CODER_PROVISIONER_JOB_LIST_INITIATOR",
140-
Description:"Filter by initiator (user ID or username).",
141-
Value:serpent.StringOf(&initiatorIDStr),
138+
Flag:"initiator",
139+
FlagShorthand:"i",
140+
Env:"CODER_PROVISIONER_JOB_LIST_INITIATOR",
141+
Description:"Filter by initiator (user ID or username).",
142+
Value:serpent.StringOf(&initiatorIDStr),
142143
},
143144
}...)
144145

‎cli/testdata/coder_provisioner_jobs_list_--help.golden‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OPTIONS:
1414
-c, --column [id|created at|started at|completed at|canceled at|error|error code|status|worker id|worker name|file id|tags|queue position|queue size|organization id|template version id|workspace build id|type|available workers|template version name|template id|template name|template display name|template icon|workspace id|workspace name|logs overflowed|organization|queue] (default: created at,id,type,template display name,status,queue,tags)
1515
Columns to display in table output.
1616

17-
--initiator string, $CODER_PROVISIONER_JOB_LIST_INITIATOR
17+
-i, --initiator string, $CODER_PROVISIONER_JOB_LIST_INITIATOR
1818
Filter by initiator (user ID or username).
1919

2020
-l, --limit int, $CODER_PROVISIONER_JOB_LIST_LIMIT (default: 50)

‎docs/reference/cli/provisioner_jobs_list.md‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎enterprise/cli/testdata/coder_provisioner_jobs_list_--help.golden‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OPTIONS:
1414
-c, --column [id|created at|started at|completed at|canceled at|error|error code|status|worker id|worker name|file id|tags|queue position|queue size|organization id|template version id|workspace build id|type|available workers|template version name|template id|template name|template display name|template icon|workspace id|workspace name|logs overflowed|organization|queue] (default: created at,id,type,template display name,status,queue,tags)
1515
Columns to display in table output.
1616

17-
--initiator string, $CODER_PROVISIONER_JOB_LIST_INITIATOR
17+
-i, --initiator string, $CODER_PROVISIONER_JOB_LIST_INITIATOR
1818
Filter by initiator (user ID or username).
1919

2020
-l, --limit int, $CODER_PROVISIONER_JOB_LIST_LIMIT (default: 50)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp