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

+14 -14
View File
@@ -16,7 +16,7 @@ import (
func SynopsisFunc(inFunc, resType string) string {
if inFunc == "" {
pluralType := strings.ReplaceAll(resource.Map[resType].PluralString(), "-", " ")
return wordwrap.WrapString(fmt.Sprintf("Manage Boundary %s", pluralType), base.TermWidth)
return wordwrap.WrapString(fmt.Sprintf("Manage Threshold %s", pluralType), base.TermWidth)
}
articleType := strings.ReplaceAll(resType, "-", " ")
switch resType[0] {
@@ -52,13 +52,13 @@ func HelpMap(resType string) map[string]func() string {
return map[string]func() string{
"base": func() string {
return base.WrapForHelpText(subtype([]string{
"Usage: boundary {{hyphentypes}} [sub command] [options] [args]",
"Usage: threshold {{hyphentypes}} [sub command] [options] [args]",
"",
" This command allows operations on Boundary {{type}} resources. Example:",
" This command allows operations on Threshold {{type}} resources. Example:",
"",
" Create {{articletype}}:",
"",
` $ boundary {{hyphentypes}} create -name prodops -description "For ProdOps usage"`,
` $ threshold {{hyphentypes}} create -name prodops -description "For ProdOps usage"`,
"",
" Please see the {{hyphentypes}} subcommand help for detailed usage information.",
}, resType, prefixMap))
@@ -66,11 +66,11 @@ func HelpMap(resType string) map[string]func() string {
"create": func() string {
return base.WrapForHelpText(subtype([]string{
"Usage: boundary {{hyphentypes}} create [options] [args]",
"Usage: threshold {{hyphentypes}} create [options] [args]",
"",
" Create {{articletype}}. Example:",
"",
` $ boundary {{hyphentypes}} create -name prodops -description "{{uppertype}} for ProdOps"`,
` $ threshold {{hyphentypes}} create -name prodops -description "{{uppertype}} for ProdOps"`,
"",
"",
}, resType, prefixMap))
@@ -78,11 +78,11 @@ func HelpMap(resType string) map[string]func() string {
"update": func() string {
return base.WrapForHelpText(subtype([]string{
"Usage: boundary {{hyphentypes}} update [options] [args]",
"Usage: threshold {{hyphentypes}} update [options] [args]",
"",
" Update {{articletype}} given its ID. Example:",
"",
` $ boundary {{hyphentypes}} update -id {{prefix}}_1234567890 -name "devops" -description "{{uppertype}} for DevOps"`,
` $ threshold {{hyphentypes}} update -id {{prefix}}_1234567890 -name "devops" -description "{{uppertype}} for DevOps"`,
"",
"",
}, resType, prefixMap))
@@ -90,11 +90,11 @@ func HelpMap(resType string) map[string]func() string {
"read": func() string {
return base.WrapForHelpText(subtype([]string{
"Usage: boundary {{hyphentypes}} read [options] [args]",
"Usage: threshold {{hyphentypes}} read [options] [args]",
"",
" Read {{articletype}} given its ID. Example:",
"",
` $ boundary {{hyphentypes}} read -id {{prefix}}_1234567890`,
` $ threshold {{hyphentypes}} read -id {{prefix}}_1234567890`,
"",
"",
}, resType, prefixMap))
@@ -102,11 +102,11 @@ func HelpMap(resType string) map[string]func() string {
"delete": func() string {
return base.WrapForHelpText(subtype([]string{
"Usage: boundary {{hyphentypes}} delete [options] [args]",
"Usage: threshold {{hyphentypes}} delete [options] [args]",
"",
" Delete {{articletype}} given its ID. Example:",
"",
` $ boundary {{hyphentypes}} delete -id {{prefix}}_1234567890`,
` $ threshold {{hyphentypes}} delete -id {{prefix}}_1234567890`,
"",
"",
}, resType, prefixMap))
@@ -114,11 +114,11 @@ func HelpMap(resType string) map[string]func() string {
"list": func() string {
return base.WrapForHelpText(subtype([]string{
"Usage: boundary {{hyphentypes}} list [options] [args]",
"Usage: threshold {{hyphentypes}} list [options] [args]",
"",
" List {{pluraltypes}} within an enclosing scope or resource. Example:",
"",
` $ boundary {{hyphentypes}} list`,
` $ threshold {{hyphentypes}} list`,
"",
"",
}, resType, prefixMap))