You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cliflag.StringVarP(cmd.Flags(), &auth, "auth", "", "CODER_AGENT_AUTH", "token", "Specify the authentication type to use for the agent")
224
-
cliflag.StringVarP(cmd.Flags(), &logDir, "log-dir", "", "CODER_AGENT_LOG_DIR", os.TempDir(), "Specify the location for the agent log files")
225
-
cliflag.StringVarP(cmd.Flags(), &pprofAddress, "pprof-address", "", "CODER_AGENT_PPROF_ADDRESS", "127.0.0.1:6060", "The address to serve pprof.")
226
-
cliflag.BoolVarP(cmd.Flags(), &noReap, "no-reap", "", "", false, "Do not start a process reaper.")
227
-
cliflag.DurationVarP(cmd.Flags(), &sshMaxTimeout, "ssh-max-timeout", "", "CODER_AGENT_SSH_MAX_TIMEOUT", time.Duration(0), "Specify the max timeout for a SSH connection")
215
+
cmd.Options= clibase.OptionSet{
216
+
{
217
+
Flag: "auth",
218
+
Default: "token",
219
+
Description: "Specify the authentication type to use for the agent.",
220
+
Env: "CODER_AGENT_AUTH",
221
+
Value: clibase.StringOf(&auth),
222
+
},
223
+
{
224
+
Flag: "log-dir",
225
+
Default: os.TempDir(),
226
+
Description: "Specify the location for the agent log files.",
227
+
Env: "CODER_AGENT_LOG_DIR",
228
+
Value: clibase.StringOf(&logDir),
229
+
},
230
+
{
231
+
Flag: "pprof-address",
232
+
Default: "127.0.0.1:6060",
233
+
Env: "CODER_AGENT_PPROF_ADDRESS",
234
+
Value: clibase.StringOf(&pprofAddress),
235
+
Description: "The address to serve pprof.",
236
+
},
237
+
{
238
+
Flag: "no-reap",
239
+
240
+
Env: "",
241
+
Description: "Do not start a process reaper.",
242
+
Value: clibase.BoolOf(&noReap),
243
+
},
244
+
{
245
+
Flag: "ssh-max-timeout",
246
+
Default: "0",
247
+
Env: "CODER_AGENT_SSH_MAX_TIMEOUT",
248
+
Description: "Specify the max timeout for a SSH connection.",
0 commit comments