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
@@ -28,29 +28,29 @@ func (c *Command) Synopsis() string {
|
||||
|
||||
func (c *Command) Help() string {
|
||||
return base.WrapForHelpText([]string{
|
||||
"Usage: boundary authenticate [sub command] [options] [args]",
|
||||
"Usage: threshold authenticate [sub command] [options] [args]",
|
||||
"",
|
||||
" This command authenticates the Boundary commandline client using a specified auth method. Examples:",
|
||||
" This command authenticates the Threshold commandline client using a specified auth method. Examples:",
|
||||
"",
|
||||
" Authenticate with the primary auth method in the global scope:",
|
||||
"",
|
||||
" $ boundary authenticate",
|
||||
" $ threshold authenticate",
|
||||
"",
|
||||
" Authenticate using the primary auth method in a specific scope",
|
||||
"",
|
||||
" $ boundary authenticate password -scope-id o_1234567890",
|
||||
" $ threshold authenticate password -scope-id o_1234567890",
|
||||
"",
|
||||
" Authenticate with a password auth method using a specific auth method ID:",
|
||||
"",
|
||||
" $ boundary authenticate password -auth-method-id ampw_1234567890",
|
||||
" $ threshold authenticate password -auth-method-id ampw_1234567890",
|
||||
"",
|
||||
" Authenticate with an OIDC auth method using a specific auth method ID:",
|
||||
"",
|
||||
" $ boundary authenticate oidc -auth-method-id amoidc_1234567890",
|
||||
" $ threshold authenticate oidc -auth-method-id amoidc_1234567890",
|
||||
"",
|
||||
" Authenticate with an LDAP auth method:",
|
||||
"",
|
||||
" $ boundary authenticate ldap -auth-method-id amldap_1234567890",
|
||||
" $ threshold authenticate ldap -auth-method-id amldap_1234567890",
|
||||
"",
|
||||
" Please see the auth method subcommand help for detailed usage information.",
|
||||
}) + c.Flags().Help()
|
||||
@@ -62,7 +62,7 @@ func (c *Command) Flags() *base.FlagSets {
|
||||
|
||||
f.StringVar(&base.StringVar{
|
||||
Name: "scope-id",
|
||||
EnvVar: "BOUNDARY_SCOPE_ID",
|
||||
EnvVar: "THRESHOLD_SCOPE_ID",
|
||||
Target: &c.FlagScopeId,
|
||||
Usage: "The scope to use for the operation",
|
||||
})
|
||||
@@ -95,7 +95,7 @@ func (c *Command) Run(args []string) int {
|
||||
aClient := authmethods.NewClient(client)
|
||||
pri, err := getPrimaryAuthMethodId(c.Context, aClient, scope.Global.String(), "")
|
||||
if err != nil {
|
||||
c.PrintCliError(errors.New("Error looking up primary auth method ID for the global scope. Try setting a primary auth method for the global scope, or use an auth method subcommand (see 'boundary authenticate -h' for available sub command usage)."))
|
||||
c.PrintCliError(errors.New("Error looking up primary auth method ID for the global scope. Try setting a primary auth method for the global scope, or use an auth method subcommand (see 'threshold authenticate -h' for available sub command usage)."))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user