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

Commitcf93c34

Browse files
authored
docs: update coder_token_lifetime description to include units and examples (#20516)
1 parent659f89e commitcf93c34

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ OPTIONS:
1010
Repeatable allow-list entry (<type>:<uuid>, e.g. workspace:1234-...).
1111

1212
--lifetime string, $CODER_TOKEN_LIFETIME
13-
Specify a duration for the lifetime of the token.
13+
Duration for the token lifetime. Supports standard Go duration units
14+
(ns, us, ms, s, m, h) plus d (days) and y (years). Examples: 8h, 30d,
15+
1y, 1d12h30m.
1416

1517
-n, --name string, $CODER_TOKEN_NAME
1618
Specify a human-readable name.

‎cli/tokens.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (r *RootCmd) createToken() *serpent.Command {
123123
{
124124
Flag:"lifetime",
125125
Env:"CODER_TOKEN_LIFETIME",
126-
Description:"Specify a durationfor the lifetime of the token.",
126+
Description:"Durationfor thetokenlifetime. Supports standard Go duration units (ns, us, ms, s, m, h) plus d (days) and y (years). Examples: 8h, 30d, 1y, 1d12h30m.",
127127
Value:serpent.StringOf(&tokenLifetime),
128128
},
129129
{

‎docs/reference/cli/tokens_create.md‎

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp