Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 778c116

Browse files
committed
adding new flag options
Signed-off-by: Philip-21 <[email protected]>
1 parent b846135 commit 778c116

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

cli/tokens.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ func (r *RootCmd) createToken() *serpent.Command {
101101
Description: "Specify a human-readable name.",
102102
Value: serpent.StringOf(&name),
103103
},
104+
{
105+
Flag: "user",
106+
FlagShorthand: "u",
107+
Env: "CODER_TOKEN_USER",
108+
Description: "create a token on behalf of another user",
109+
Value: serpent.StringOf(&name),
110+
},
104111
}
105112

106113
return cmd

pnpm-lock.yaml

Lines changed: 19 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)