" Fetch a token stored by the Boundary CLI. Example:",
"",
` $ boundary config get-token`,
"",
" This can be useful in various situations. For example, a line such as the following could be in a shell script shared by developers, such that each developer on their own machine executing the script ends up using their own Boundary token:",
" Note that this command keeps parity with the behavior of other Boundary commands; if the BOUNDARY_TOKEN environment variable it set, it will override the value loaded from the system store. Not only does this keep parity, but it also allows examples such as the one above to work even if there is no stored token but if an environment variable is specified.",
"",
)
}
returnbase.WrapForHelpText(args)+c.Flags().Help()
}
func(c*TokenCommand)Flags()*base.FlagSets{
set:=c.FlagSet(base.FlagSetNone)
f:=set.NewFlagSet("Command Options")
f.StringVar(&base.StringVar{
Name:"token-name",
Target:&c.FlagTokenName,
EnvVar:base.EnvTokenName,
Usage:`If specified, the given value will be used as the name when loading the token from the system credential store. This must correspond to a name used when authenticating.`,