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

+4 -4
View File
@@ -28,16 +28,16 @@ type AddTokenCommand struct {
}
func (c *AddTokenCommand) Synopsis() string {
return "Add an auth token to a running boundary cache"
return "Add an auth token to a running threshold cache"
}
func (c *AddTokenCommand) Help() string {
helpText := `
Usage: boundary cache add-token [options]
Usage: threshold cache add-token [options]
Add an auth token to the cache:
$ boundary cache add-token
$ threshold cache add-token
For a full list of examples, please see the documentation.
@@ -54,7 +54,7 @@ func (c *AddTokenCommand) Flags() *base.FlagSets {
Target: &c.FlagAddr,
EnvVar: api.EnvBoundaryAddr,
Completion: complete.PredictAnything,
Usage: "Addr of the Boundary controller, as a complete URL (e.g. https://boundary.example.com:9200).",
Usage: "Addr of the Threshold controller, as a complete URL (e.g. https://threshold.example.com:9200).",
})
f = set.NewFlagSet("Client Options")
+5 -5
View File
@@ -21,18 +21,18 @@ type CacheCommand struct {
}
func (c *CacheCommand) Synopsis() string {
return "Manages the client side Boundary cache"
return "Manages the client side Threshold cache"
}
func (c *CacheCommand) Help() string {
helpText := `
Usage: boundary cache [sub command] [options]
Usage: threshold cache [sub command] [options]
This command allows interacting with the Boundary cache.
This command allows interacting with the Threshold cache.
Start a cache:
$ boundary cache start
$ threshold cache start
For a full list of examples, please see the documentation.
@@ -54,7 +54,7 @@ func (c *CacheCommand) AutocompleteFlags() complete.Flags {
func (c *CacheCommand) Run(args []string) int {
if len(args) >= 2 && args[1] == "daemon" {
c.UI.Warn("The `boundary daemon` command is deprecated, use `boundary cache` instead")
c.UI.Warn("The `threshold daemon` command is deprecated, use `threshold cache` instead")
}
return cli.RunResultHelp
}
+5 -6
View File
@@ -24,7 +24,6 @@ import (
)
const (
dotDirname = ".boundary"
pidFileName = "cache.pid"
logFileName = "cache.log"
@@ -54,16 +53,16 @@ type StartCommand struct {
}
func (c *StartCommand) Synopsis() string {
return "Start a Boundary cache"
return "Start a Threshold cache"
}
func (c *StartCommand) Help() string {
helpText := `
Usage: boundary cache start [options]
Usage: threshold cache start [options]
Start a cache:
$ boundary cache start
$ threshold cache start
For a full list of examples, please see the documentation.
@@ -78,7 +77,7 @@ func (c *StartCommand) Flags() *base.FlagSets {
f.StringVar(&base.StringVar{
Name: "log-level",
Target: &c.flagLogLevel,
EnvVar: "BOUNDARY_LOG_LEVEL",
EnvVar: "THRESHOLD_LOG_LEVEL",
Completion: complete.PredictSet("trace", "debug", "info", "warn", "err"),
Usage: "Log verbosity level, mostly as a fallback for events. Supported values (in order of more detail to less) are " +
"\"trace\", \"debug\", \"info\", \"warn\", and \"err\".",
@@ -255,7 +254,7 @@ func DefaultDotDirectory(ctx context.Context) (string, error) {
if err != nil {
return "", errors.Wrap(ctx, err, op)
}
return filepath.Join(homeDir, dotDirname), nil
return daemon.DotDirectory(homeDir), nil
}
// logFile returns a log file which is rotated after it reaches the provided
+4 -4
View File
@@ -34,16 +34,16 @@ type StatusCommand struct {
}
func (c *StatusCommand) Synopsis() string {
return "Get the status information of the running boundary cache"
return "Get the status information of the running threshold cache"
}
func (c *StatusCommand) Help() string {
helpText := `
Usage: boundary cache status [options]
Usage: threshold cache status [options]
Get the status of the boundary cache:
Get the status of the threshold cache:
$ boundary cache status
$ threshold cache status
For a full list of examples, please see the documentation.
+3 -3
View File
@@ -17,16 +17,16 @@ type StopCommand struct {
}
func (c *StopCommand) Synopsis() string {
return "Stop the Boundary cache"
return "Stop the Threshold cache"
}
func (c *StopCommand) Help() string {
helpText := `
Usage: boundary cache stop
Usage: threshold cache stop
Stop a cache:
$ boundary cache stop
$ threshold cache stop
For a full list of examples, please see the documentation.
+2 -2
View File
@@ -76,7 +76,7 @@ func startDaemon(ctx context.Context, baseCmd *base.Command) (started bool, _ er
cmdName, err := os.Executable()
if err != nil {
baseCmd.UI.Error(fmt.Sprintf("unable to find boundary binary for cache startup: %s", err.Error()))
baseCmd.UI.Error(fmt.Sprintf("unable to find threshold binary for cache startup: %s", err.Error()))
return false, err
}
@@ -113,7 +113,7 @@ func stopDaemon(ctx context.Context, baseCmd *base.Command) error {
cmdName, err := os.Executable()
if err != nil {
baseCmd.UI.Error(fmt.Sprintf("unable to find boundary binary for cache startup: %s", err.Error()))
baseCmd.UI.Error(fmt.Sprintf("unable to find threshold binary for cache startup: %s", err.Error()))
return err
}
cmd := exec.Command(cmdName, "cache", "stop")