Files
threshold/internal/cmd/commands/authtokenscmd/authtokens.go
T
Johan Brandhorst-Satzkorn 9474b373b8 api: remove create from auth-tokens help (#3341)
The auth-tokens help command included a reference to
a non-existent auth-tokens create command. Replace the
default help and also add a helpful pointer to the authenticate
command.
2023-06-20 13:17:43 -07:00

30 lines
794 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package authtokenscmd
import "github.com/hashicorp/boundary/internal/cmd/base"
func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
var helpStr string
switch c.Func {
case "":
return base.WrapForHelpText([]string{
"Usage: boundary auth-tokens [sub command] [options] [args]",
"",
" This command allows operations on Boundary auth token resources. Example:",
"",
" List all auth tokens:",
"",
` $ boundary auth-tokens list -recursive `,
"",
" Please see the auth-tokens subcommand help for detailed usage information.",
" Note: To create an auth token, see the authenticate subcommand.",
})
default:
helpStr = helpMap["base"]()
}
return helpStr
}