Rebrand user-visible CLI text; add legacy fallbacks for keyring, cache dir and version prefix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cb3bda43a
commit
ab4ed3c9e5
184 files changed
+934
-851
No files matched your search
@@ -151,7 +151,7 @@ func (c *Command) Run(args []string) int {
|
||||
|
||||
case "list":
|
||||
if c.FlagScopeId == "" {
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or BOUNDARY_SCOPE_ID"))
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or THRESHOLD_SCOPE_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
@@ -23,37 +23,37 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
|
||||
switch c.Func {
|
||||
case "":
|
||||
return base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods [sub command] [options] [args]",
|
||||
"Usage: threshold auth-methods [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows operations on Boundary auth method resources. Example:",
|
||||
" This command allows operations on Threshold auth method resources. Example:",
|
||||
"",
|
||||
" Read an auth method:",
|
||||
"",
|
||||
` $ boundary auth-methods read -id ampw_1234567890`,
|
||||
` $ threshold auth-methods read -id ampw_1234567890`,
|
||||
"",
|
||||
" Please see the auth-methods subcommand help for detailed usage information.",
|
||||
})
|
||||
case "create":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods create [type] [sub command] [options] [args]",
|
||||
"Usage: threshold auth-methods create [type] [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows create operations on Boundary auth method resources. Example:",
|
||||
" This command allows create operations on Threshold auth method resources. Example:",
|
||||
"",
|
||||
" Create a password-type auth method:",
|
||||
"",
|
||||
` $ boundary auth-methods create password -name prodops -description "For ProdOps usage"`,
|
||||
` $ threshold auth-methods create password -name prodops -description "For ProdOps usage"`,
|
||||
"",
|
||||
" Please see the typed subcommand help for detailed usage information.",
|
||||
})
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods update [type] [sub command] [options] [args]",
|
||||
"Usage: threshold auth-methods update [type] [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows update operations on Boundary auth method resources. Example:",
|
||||
" This command allows update operations on Threshold auth method resources. Example:",
|
||||
"",
|
||||
" Update a password-type auth method:",
|
||||
"",
|
||||
` $ boundary auth-methods update password -id ampw_1234567890 -name devops -description "For DevOps usage"`,
|
||||
` $ threshold auth-methods update password -id ampw_1234567890 -name devops -description "For DevOps usage"`,
|
||||
"",
|
||||
" Please see the typed subcommand help for detailed usage information.",
|
||||
})
|
||||
|
||||
@@ -137,7 +137,7 @@ func (c *LdapCommand) Run(args []string) int {
|
||||
|
||||
case "create":
|
||||
if c.FlagScopeId == "" {
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or BOUNDARY_SCOPE_ID"))
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or THRESHOLD_SCOPE_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
@@ -258,22 +258,22 @@ func (c *LdapCommand) extraLdapHelpFunc(helpMap map[string]func() string) string
|
||||
switch c.Func {
|
||||
case "create":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods create ldap [options] [args]",
|
||||
"Usage: threshold auth-methods create ldap [options] [args]",
|
||||
"",
|
||||
" Create an ldap-type auth method. Example:",
|
||||
"",
|
||||
` $ boundary auth-methods create ldap -name prodops -description "LDAP auth-method for ProdOps"`,
|
||||
` $ threshold auth-methods create ldap -name prodops -description "LDAP auth-method for ProdOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods update ldap [options] [args]",
|
||||
"Usage: threshold auth-methods update ldap [options] [args]",
|
||||
"",
|
||||
" Update an ldap-type auth method given its ID. Example:",
|
||||
"",
|
||||
` $ boundary auth-methods update ldap -id amldap_1234567890 -name "devops" -description "LDAP auth-method for DevOps"`,
|
||||
` $ threshold auth-methods update ldap -id amldap_1234567890 -name "devops" -description "LDAP auth-method for DevOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
@@ -137,7 +137,7 @@ func (c *OidcCommand) Run(args []string) int {
|
||||
|
||||
case "create":
|
||||
if c.FlagScopeId == "" {
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or BOUNDARY_SCOPE_ID"))
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or THRESHOLD_SCOPE_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ func extraOidcFlagsFuncImpl(c *OidcCommand, set *base.FlagSets, _ *base.FlagSet)
|
||||
f.StringSliceVar(&base.StringSliceVar{
|
||||
Name: accountClaimMaps,
|
||||
Target: &c.flagAccountClaimMaps,
|
||||
Usage: `The optional account claim maps from custom claims to the standard claims of sub, name and email. These maps are represented as key=value where the key equals the Provider from-claim and the value equals the Boundary to-claim. For example "oid=sub". May be specified multiple times for different to-claims.`,
|
||||
Usage: `The optional account claim maps from custom claims to the standard claims of sub, name and email. These maps are represented as key=value where the key equals the Provider from-claim and the value equals the Threshold to-claim. For example "oid=sub". May be specified multiple times for different to-claims.`,
|
||||
})
|
||||
case stateFlagName:
|
||||
f.StringVar(&base.StringVar{
|
||||
@@ -177,32 +177,32 @@ func (c *OidcCommand) extraOidcHelpFunc(helpMap map[string]func() string) string
|
||||
switch c.Func {
|
||||
case "create":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods create oidc [options] [args]",
|
||||
"Usage: threshold auth-methods create oidc [options] [args]",
|
||||
"",
|
||||
" Create an oidc-type auth method. Example:",
|
||||
"",
|
||||
` $ boundary auth-methods create oidc -name prodops -description "Oidc auth-method for ProdOps"`,
|
||||
` $ threshold auth-methods create oidc -name prodops -description "Oidc auth-method for ProdOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods update oidc [options] [args]",
|
||||
"Usage: threshold auth-methods update oidc [options] [args]",
|
||||
"",
|
||||
" Update an oidc-type auth method given its ID. Example:",
|
||||
"",
|
||||
` $ boundary auth-methods update oidc -id amoidc_1234567890 -name "devops" -description "Oidc auth-method for DevOps"`,
|
||||
` $ threshold auth-methods update oidc -id amoidc_1234567890 -name "devops" -description "Oidc auth-method for DevOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
case "change-state":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods change-state oidc [options] [args]",
|
||||
"Usage: threshold auth-methods change-state oidc [options] [args]",
|
||||
"",
|
||||
" Change the active and visibility state of an oidc-type auth method given its ID. Example:",
|
||||
"",
|
||||
` $ boundary auth-methods change-state oidc -id amoidc_1234567890 -state "public-active"`,
|
||||
` $ threshold auth-methods change-state oidc -id amoidc_1234567890 -state "public-active"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
@@ -137,7 +137,7 @@ func (c *PasswordCommand) Run(args []string) int {
|
||||
|
||||
case "create":
|
||||
if c.FlagScopeId == "" {
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or BOUNDARY_SCOPE_ID"))
|
||||
c.PrintCliError(errors.New("Scope ID must be passed in via -scope-id or THRESHOLD_SCOPE_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
@@ -34,22 +34,22 @@ func (c *PasswordCommand) extraPasswordHelpFunc(helpMap map[string]func() string
|
||||
switch c.Func {
|
||||
case "create":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods create password [options] [args]",
|
||||
"Usage: threshold auth-methods create password [options] [args]",
|
||||
"",
|
||||
" Create a password-type auth method. Example:",
|
||||
"",
|
||||
` $ boundary auth-methods create password -name prodops -description "Password auth-method for ProdOps"`,
|
||||
` $ threshold auth-methods create password -name prodops -description "Password auth-method for ProdOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary auth-methods update password [options] [args]",
|
||||
"Usage: threshold auth-methods update password [options] [args]",
|
||||
"",
|
||||
" Update a password-type auth method given its ID. Example:",
|
||||
"",
|
||||
` $ boundary auth-methods update password -id ampw_1234567890 -name "devops" -description "Password auth-method for DevOps"`,
|
||||
` $ threshold auth-methods update password -id ampw_1234567890 -name "devops" -description "Password auth-method for DevOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user