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
@@ -25,7 +25,7 @@ func PopulateCommonFlags(c *base.Command, f *base.FlagSet, resourceType string,
|
||||
f.StringVar(&base.StringVar{
|
||||
Name: "scope-id",
|
||||
Target: &c.FlagScopeId,
|
||||
EnvVar: "BOUNDARY_SCOPE_ID",
|
||||
EnvVar: "THRESHOLD_SCOPE_ID",
|
||||
Default: scope.Global.String(),
|
||||
Completion: complete.PredictAnything,
|
||||
Usage: `Scope in which to make the request.`,
|
||||
@@ -34,7 +34,7 @@ func PopulateCommonFlags(c *base.Command, f *base.FlagSet, resourceType string,
|
||||
f.StringVar(&base.StringVar{
|
||||
Name: "scope-name",
|
||||
Target: &c.FlagScopeName,
|
||||
EnvVar: "BOUNDARY_SCOPE_NAME",
|
||||
EnvVar: "THRESHOLD_SCOPE_NAME",
|
||||
Completion: complete.PredictAnything,
|
||||
Usage: `Scope in which to make the request, identified by name.`,
|
||||
})
|
||||
@@ -80,21 +80,21 @@ func PopulateCommonFlags(c *base.Command, f *base.FlagSet, resourceType string,
|
||||
case "auth-method-id":
|
||||
f.StringVar(&base.StringVar{
|
||||
Name: "auth-method-id",
|
||||
EnvVar: "BOUNDARY_AUTH_METHOD_ID",
|
||||
EnvVar: "THRESHOLD_AUTH_METHOD_ID",
|
||||
Target: &c.FlagAuthMethodId,
|
||||
Usage: "The auth-method resource to use for the operation.",
|
||||
})
|
||||
case "host-catalog-id":
|
||||
f.StringVar(&base.StringVar{
|
||||
Name: "host-catalog-id",
|
||||
EnvVar: "BOUNDARY_HOST_CATALOG_ID",
|
||||
EnvVar: "THRESHOLD_HOST_CATALOG_ID",
|
||||
Target: &c.FlagHostCatalogId,
|
||||
Usage: "The host-catalog resource to use for the operation.",
|
||||
})
|
||||
case "credential-store-id":
|
||||
f.StringVar(&base.StringVar{
|
||||
Name: "credential-store-id",
|
||||
EnvVar: "BOUNDARY_CREDENTIAL_STORE_ID",
|
||||
EnvVar: "THRESHOLD_CREDENTIAL_STORE_ID",
|
||||
Target: &c.FlagCredentialStoreId,
|
||||
Usage: "The credential-store resource to use for the operation.",
|
||||
})
|
||||
|
||||
+14
-14
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user