mirror of https://github.com/hashicorp/boundary
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.pull/3348/head
parent
103b1e78aa
commit
9474b373b8
@ -0,0 +1,29 @@
|
||||
// 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
|
||||
}
|
||||
Loading…
Reference in new issue