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:
shadowdaoandClaude Sonnet 5.5 committed 2026-10-12 10:20:06 -07:00
1 parent 4cb3bda43a
commit ab4ed3c9e5
184 files changed
+934 -851

No files matched your search

@@ -31,11 +31,11 @@ type WorkerCACommand struct {
func (c *WorkerCACommand) Synopsis() string {
switch c.Func {
case "read":
return wordwrap.WrapString("Read the certificate authority used to authorize Boundary workers", base.TermWidth)
return wordwrap.WrapString("Read the certificate authority used to authorize Threshold workers", base.TermWidth)
case "reinitialize":
return wordwrap.WrapString("Reinitialize the certificate authority used to authorize Boundary workers", base.TermWidth)
return wordwrap.WrapString("Reinitialize the certificate authority used to authorize Threshold workers", base.TermWidth)
}
return wordwrap.WrapString("Manage the certificate authority used to authorize Boundary workers", base.TermWidth)
return wordwrap.WrapString("Manage the certificate authority used to authorize Threshold workers", base.TermWidth)
}
var flagsCertificateAuthority = map[string][]string{
@@ -47,33 +47,33 @@ func (c *WorkerCACommand) Help() string {
switch c.Func {
case "read":
return base.WrapForHelpText([]string{
"Usage: boundary workers certificate-authority read",
"Usage: threshold workers certificate-authority read",
"",
" Read the certificate authority used to authorize Boundary workers:",
" Read the certificate authority used to authorize Threshold workers:",
"",
` $ boundary workers certificate-authority read`,
` $ threshold workers certificate-authority read`,
"",
"",
}) + c.Flags().Help()
case "reinitialize":
return base.WrapForHelpText([]string{
"Usage: boundary workers certificate-authority reinitialize",
"Usage: threshold workers certificate-authority reinitialize",
"",
" Reinitialize the certificate authority used to authorize Boundary workers:",
" Reinitialize the certificate authority used to authorize Threshold workers:",
"",
` $ boundary workers certificate-authority reinitialize`,
` $ threshold workers certificate-authority reinitialize`,
"",
"",
}) + c.Flags().Help()
}
return base.WrapForHelpText([]string{
"Usage: boundary workers certificate-authority [options]",
"Usage: threshold workers certificate-authority [options]",
"",
" This command allows for management of the certificate authority used to authorize Boundary workers. Example:",
" This command allows for management of the certificate authority used to authorize Threshold workers. Example:",
"",
" Read the current certificate authority:",
"",
` $ boundary workers certificate-authority read`,
` $ threshold workers certificate-authority read`,
"",
" Please see the certificate-authority subcommand help for detailed usage information.",
"",
@@ -169,7 +169,7 @@ func (c *WorkerCACommand) Run(args []string) int {
case "read":
case "reinitialize":
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
}
@@ -18,11 +18,11 @@ func (c *ControllerLedCommand) extraControllerLedHelpFunc(helpMap map[string]fun
switch c.Func {
case "create":
helpStr = base.WrapForHelpText([]string{
"Usage: boundary workers create controller-led [options] [args]",
"Usage: threshold workers create controller-led [options] [args]",
"",
" Create a worker using the controller-led approach, receiving an activation token for a worker. Example:",
"",
` $ boundary workers create controller-led -name us-east-1-1`,
` $ threshold workers create controller-led -name us-east-1-1`,
"",
"",
})
@@ -136,7 +136,7 @@ func (c *ControllerLedCommand) 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
}
+9 -9
View File
@@ -48,49 +48,49 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
switch c.Func {
case "":
return base.WrapForHelpText([]string{
"Usage: boundary workers [sub command] [options] [args]",
"Usage: threshold workers [sub command] [options] [args]",
"",
" This command allows operations on Boundary worker resources. Example:",
" This command allows operations on Threshold worker resources. Example:",
"",
" Read a worker:",
"",
` $ boundary workers read -id w_1234567890`,
` $ threshold workers read -id w_1234567890`,
"",
" Please see the workers subcommand help for detailed usage information.",
})
case "add-worker-tags":
helpStr = base.WrapForHelpText([]string{
"Usage: boundary workers add-worker-tags [options] [args]",
"Usage: threshold workers add-worker-tags [options] [args]",
"",
" This command allows adding api tags to worker resources. Example:",
"",
" Add a set of api tags to a specified worker:",
"",
` & boundary workers add-worker-tags -id w_1234567890 -tag "key1=val-a" -tag "key2=val-b,val-c"`,
` & threshold workers add-worker-tags -id w_1234567890 -tag "key1=val-a" -tag "key2=val-b,val-c"`,
"",
"",
})
case "set-worker-tags":
helpStr = base.WrapForHelpText([]string{
"Usage: boundary workers set-worker-tags [options] [args]",
"Usage: threshold workers set-worker-tags [options] [args]",
"",
" This command allows setting api tags for worker resources. Example:",
"",
" Set api tags for a specified worker:",
"",
` & boundary workers set-worker-tags -id w_1234567890 -tag "key1=val-a" -tag "key2=val-b,val-c"`,
` & threshold workers set-worker-tags -id w_1234567890 -tag "key1=val-a" -tag "key2=val-b,val-c"`,
"",
"",
})
case "remove-worker-tags":
helpStr = base.WrapForHelpText([]string{
"Usage: boundary workers remove-worker-tags [options] [args]",
"Usage: threshold workers remove-worker-tags [options] [args]",
"",
" This command allows removing api tags from worker resources. Example:",
"",
" Remove a set of api tags to a specified worker:",
"",
` & boundary workers remove-worker-tags -id w_1234567890 -tag "key1=val-a" -tag "key2=val-b,val-c"`,
` & threshold workers remove-worker-tags -id w_1234567890 -tag "key1=val-a" -tag "key2=val-b,val-c"`,
"",
"",
})
@@ -30,11 +30,11 @@ func (c *WorkerLedCommand) extraWorkerLedHelpFunc(helpMap map[string]func() stri
switch c.Func {
case "create":
helpStr = base.WrapForHelpText([]string{
"Usage: boundary workers create worker-led [options] [args]",
"Usage: threshold workers create worker-led [options] [args]",
"",
" Create a worker using the worker-led approach by providing an auth token from the worker. Example:",
"",
` $ boundary workers create worker-led -name us-east-1-1 -worker-generated-auth-token <token>"`,
` $ threshold workers create worker-led -name us-east-1-1 -worker-generated-auth-token <token>"`,
"",
"",
})
@@ -51,7 +51,7 @@ func extraWorkerLedFlagsFuncImpl(c *WorkerLedCommand, set *base.FlagSets, _ *bas
f.StringVar(&base.StringVar{
Name: "worker-generated-auth-token",
Target: &c.flagWorkerGeneratedAuthToken,
Usage: "The auth token provided by the worker to use to register it to Boundary",
Usage: "The auth token provided by the worker to use to register it to Threshold",
})
}
}
@@ -138,7 +138,7 @@ func (c *WorkerLedCommand) 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
}
@@ -153,7 +153,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
}