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
@@ -260,7 +260,7 @@ func (c *{{ camelCase .SubActionPrefix }}Command) Run(args []string) int {
|
||||
init{{ camelCase .SubActionPrefix }}Flags()
|
||||
|
||||
{{ if .HasExampleCliOutput }}
|
||||
if api.Getenv("BOUNDARY_EXAMPLE_CLI_OUTPUT") != "" {
|
||||
if api.Getenv("THRESHOLD_EXAMPLE_CLI_OUTPUT") != "" {
|
||||
c.UI.Output(exampleOutput())
|
||||
return base.CommandSuccess
|
||||
}
|
||||
@@ -340,14 +340,14 @@ func (c *{{ camelCase .SubActionPrefix }}Command) Run(args []string) int {
|
||||
{{ if hasAction .StdActions "create" }}
|
||||
case "create":
|
||||
if c.Flag{{ .Container }}Id == "" {
|
||||
c.PrintCliError(errors.New("{{ .Container }} ID must be passed in via -{{ kebabCase .Container }}-id or BOUNDARY_{{ envCase .Container }}_ID"))
|
||||
c.PrintCliError(errors.New("{{ .Container }} ID must be passed in via -{{ kebabCase .Container }}-id or THRESHOLD_{{ envCase .Container }}_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
{{ end }}
|
||||
{{ if hasAction .StdActions "list" }}
|
||||
case "list":
|
||||
if c.Flag{{ .Container }}Id == "" {
|
||||
c.PrintCliError(errors.New("{{ .Container }} ID must be passed in via -{{ kebabCase .Container }}-id or BOUNDARY_{{ envCase .Container }}_ID"))
|
||||
c.PrintCliError(errors.New("{{ .Container }} ID must be passed in via -{{ kebabCase .Container }}-id or THRESHOLD_{{ envCase .Container }}_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user