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
@@ -46,7 +46,7 @@ func extraSynopsisFuncImpl(c *Command) string {
|
||||
case strings.HasPrefix(c.Func, "remove"):
|
||||
in = "Remove accounts from"
|
||||
}
|
||||
return wordwrap.WrapString(fmt.Sprintf("%s a user within Boundary", in), base.TermWidth)
|
||||
return wordwrap.WrapString(fmt.Sprintf("%s a user within Threshold", in), base.TermWidth)
|
||||
}
|
||||
|
||||
return ""
|
||||
@@ -57,33 +57,33 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
|
||||
switch c.Func {
|
||||
case "add-accounts":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary users add-accounts [options] [args]",
|
||||
"Usage: threshold users add-accounts [options] [args]",
|
||||
"",
|
||||
` Associates accounts to a user given its ID. The "account" flag can be specified multiple times. Example:`,
|
||||
"",
|
||||
` $ boundary users add-accounts -id u_1234567890 -account a_1234567890`,
|
||||
` $ threshold users add-accounts -id u_1234567890 -account a_1234567890`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
case "set-accounts":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary users set-accounts [options] [args]",
|
||||
"Usage: threshold users set-accounts [options] [args]",
|
||||
"",
|
||||
` Sets the complete set of associated accounts on a user given its ID. The "account" flag can be specified multiple times. Example:`,
|
||||
"",
|
||||
` $ boundary users set-principals -id u_1234567890 -account a_0987654321 -account a_1234567890`,
|
||||
` $ threshold users set-principals -id u_1234567890 -account a_0987654321 -account a_1234567890`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
case "remove-accounts":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary users remove-accounts [options] [args]",
|
||||
"Usage: threshold users remove-accounts [options] [args]",
|
||||
"",
|
||||
` Disassociates accounts from a user given its ID. The "account" flag can be specified multiple times. Example:`,
|
||||
"",
|
||||
` $ boundary users remove-accounts -id u_1234567890 -account a_1234567890`,
|
||||
` $ threshold users remove-accounts -id u_1234567890 -account a_1234567890`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
@@ -157,13 +157,13 @@ func (c *Command) 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
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user