return"Delete the current token within Boundary and forget it locally"
}
func(c*LogoutCommand)Help()string{
varargs[]string
args=append(args,
"Usage: boundary logout [options]",
"",
" Delete the current token (as selected by -token-name) within Boundary and forget it from the local store. Example:",
"",
` $ boundary logout`,
"",
)
returnbase.WrapForHelpText(args)+c.Flags().Help()
}
func(c*LogoutCommand)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.`,
})
f.StringVar(&base.StringVar{
Name:"keyring-type",
Target:&c.FlagKeyringType,
Default:"auto",
EnvVar:base.EnvKeyringType,
Usage:`The type of keyring to use. Defaults to "auto" which will use the Windows credential manager, OSX keychain, or cross-platform password store depending on platform. Set to "none" to disable keyring functionality. Available types, depending on platform, are: "wincred", "keychain", "pass", and "secret-service".`,