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
RootCmd.PersistentFlags().StringVarP(&configFile, "config", "", "", fmt.Sprintf("Full path to config file in JSON format. (default is %s)", defaultConfigPath))
310
-
RootCmd.PersistentFlags().BoolVar(&noPrompt, "no-prompt", false, "Do not prompt for any user input and assume defaults or environmental variables are set.")
311
-
RootCmd.PersistentFlags().BoolVar(&expEnabled, "exp", false, "Enable expEnabled features. (USE AT YOUR OWN RISK, these features are not supported and may change or be removed at any time.)")
357
+
RootCmd.PersistentFlags().StringVarP(
358
+
&configFile,
359
+
"config",
360
+
"",
361
+
"",
362
+
fmt.Sprintf("Full path to config file in JSON format. (default is %s)", defaultConfigPath),
363
+
)
364
+
RootCmd.PersistentFlags().BoolVar(
365
+
&noPrompt,
366
+
"no-prompt",
367
+
false,
368
+
"Do not prompt for any user input and assume defaults or environmental variables are set.",
369
+
)
370
+
RootCmd.PersistentFlags().BoolVar(
371
+
&expEnabled,
372
+
"exp",
373
+
false,
374
+
"Enable expEnabled features. (USE AT YOUR OWN RISK, these features are not supported and may change or be removed at any time.)",
RootCmd.PersistentFlags().BoolVar(&logInsecure, "log-insecure", false, "Log insecure API requests. (USE AT YOUR OWN RISK, this WILL log sensitive information to the console.)")
314
-
RootCmd.PersistentFlags().StringVarP(&profile, "profile", "", "", "Use a specific profile from your config file. If not specified the config named 'default' will be used if it exists.")
315
-
RootCmd.PersistentFlags().StringVar(&outputFormat, "format", "text", "How to format the CLI output. Currently only `text` is supported.")
377
+
RootCmd.PersistentFlags().BoolVar(
378
+
&logInsecure,
379
+
"log-insecure",
380
+
false,
381
+
"Log insecure API requests. (USE AT YOUR OWN RISK, this WILL log sensitive information to the console.)",
382
+
)
383
+
RootCmd.PersistentFlags().StringVarP(
384
+
&profile,
385
+
"profile",
386
+
"",
387
+
"",
388
+
"Use a specific profile from your config file. If not specified the config named 'default' will be used if it exists.",
389
+
)
390
+
RootCmd.PersistentFlags().StringVar(
391
+
&outputFormat,
392
+
"format",
393
+
"text",
394
+
"How to format the CLI output. Currently only `text` is supported.",
395
+
)
316
396
317
397
RootCmd.PersistentFlags().StringVar(&providerType, "auth-provider-type", "", "Provider type choices: (azid)")
318
398
// Validating the provider-type flag against the predefined choices
RootCmd.PersistentFlags().StringVarP(&providerProfile, "auth-provider-profile", "", "default", "The profile to use defined in the securely stored config. If not specified the config named 'default' will be used if it exists.")
321
-
322
-
RootCmd.PersistentFlags().StringVarP(&kfcUsername, "username", "", "", "Username to use for authenticating to Keyfactor Command.")
323
-
RootCmd.PersistentFlags().StringVarP(&kfcHostName, "hostname", "", "", "Hostname to use for authenticating to Keyfactor Command.")
324
-
RootCmd.PersistentFlags().StringVarP(&kfcPassword, "password", "", "", "Password to use for authenticating to Keyfactor Command. WARNING: Remember to delete your console history if providing kfcPassword here in plain text.")
325
-
RootCmd.PersistentFlags().StringVarP(&kfcDomain, "domain", "", "", "Domain to use for authenticating to Keyfactor Command.")
326
-
RootCmd.PersistentFlags().StringVarP(&kfcAPIPath, "api-path", "", "KeyfactorAPI", "API Path to use for authenticating to Keyfactor Command. (default is KeyfactorAPI)")
400
+
RootCmd.PersistentFlags().StringVarP(
401
+
&providerProfile,
402
+
"auth-provider-profile",
403
+
"",
404
+
"default",
405
+
"The profile to use defined in the securely stored config. If not specified the config named 'default' will be used if it exists.",
406
+
)
407
+
408
+
RootCmd.PersistentFlags().StringVarP(
409
+
&kfcUsername,
410
+
"username",
411
+
"",
412
+
"",
413
+
"Username to use for authenticating to Keyfactor Command.",
414
+
)
415
+
RootCmd.PersistentFlags().StringVarP(
416
+
&kfcHostName,
417
+
"hostname",
418
+
"",
419
+
"",
420
+
"Hostname to use for authenticating to Keyfactor Command.",
421
+
)
422
+
RootCmd.PersistentFlags().StringVarP(
423
+
&kfcPassword,
424
+
"password",
425
+
"",
426
+
"",
427
+
"Password to use for authenticating to Keyfactor Command. WARNING: Remember to delete your console history if providing kfcPassword here in plain text.",
428
+
)
429
+
RootCmd.PersistentFlags().StringVarP(
430
+
&kfcDomain,
431
+
"domain",
432
+
"",
433
+
"",
434
+
"Domain to use for authenticating to Keyfactor Command.",
435
+
)
436
+
RootCmd.PersistentFlags().StringVarP(
437
+
&kfcAPIPath,
438
+
"api-path",
439
+
"",
440
+
"KeyfactorAPI",
441
+
"API Path to use for authenticating to Keyfactor Command. (default is KeyfactorAPI)",
442
+
)
327
443
328
444
// Cobra also supports local flags, which will only run
0 commit comments