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

Skip to content

Commit d855172

Browse files
committed
some stuff
1 parent 67966e7 commit d855172

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ func Root() *cobra.Command {
128128

129129
cmd.PersistentFlags().String(varURL, "", "Specify the URL to your deployment.")
130130
cliflag.BoolVarP(cmd.PersistentFlags(), &varSuppressVersion, "no-version-warning", "", envNoVersionCheck, false, "Suppress warning when client and server versions do not match.")
131+
cliflag.String(cmd.PersistentFlags(), varToken, "", envSessionToken, "", fmt.Sprintf("Specify an authentication token. For security reasons setting %s is preferred.", envSessionToken))
132+
cliflag.String(cmd.PersistentFlags(), varAgentToken, "", "CODER_AGENT_TOKEN", "", "Specify an agent authentication token.")
131133
_ = cmd.PersistentFlags().MarkHidden(varAgentToken)
132134
cliflag.String(cmd.PersistentFlags(), varAgentURL, "", "CODER_AGENT_URL", "", "Specify the URL for an agent to access your deployment.")
133135
_ = cmd.PersistentFlags().MarkHidden(varAgentURL)

0 commit comments

Comments
 (0)