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
@@ -51,73 +51,73 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
|
||||
switch c.Func {
|
||||
case "":
|
||||
return base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets [sub command] [options] [args]",
|
||||
"Usage: threshold host-sets [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows operations on Boundary host set resources. Example:",
|
||||
" This command allows operations on Threshold host set resources. Example:",
|
||||
"",
|
||||
" Read a host set:",
|
||||
"",
|
||||
` $ boundary host-sets read -id hsst_1234567890`,
|
||||
` $ threshold host-sets read -id hsst_1234567890`,
|
||||
"",
|
||||
" Please see the host-sets subcommand help for detailed usage information.",
|
||||
})
|
||||
case "create":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets create [type] [sub command] [options] [args]",
|
||||
"Usage: threshold host-sets create [type] [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows create operations on Boundary host set resources. Example:",
|
||||
" This command allows create operations on Threshold host set resources. Example:",
|
||||
"",
|
||||
" Create a static-type host set:",
|
||||
"",
|
||||
` $ boundary host-sets create static -name prodops -description "For ProdOps usage"`,
|
||||
` $ threshold host-sets create static -name prodops -description "For ProdOps usage"`,
|
||||
"",
|
||||
" Please see the typed subcommand help for detailed usage information.",
|
||||
})
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets update [type] [sub command] [options] [args]",
|
||||
"Usage: threshold host-sets update [type] [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows update operations on Boundary host set resources. Example:",
|
||||
" This command allows update operations on Threshold host set resources. Example:",
|
||||
"",
|
||||
" Update a static-type host set:",
|
||||
"",
|
||||
` $ boundary host-sets update static -id hsst_1234567890 -name devops -description "For DevOps usage"`,
|
||||
` $ threshold host-sets update static -id hsst_1234567890 -name devops -description "For DevOps usage"`,
|
||||
"",
|
||||
" Please see the typed subcommand help for detailed usage information.",
|
||||
})
|
||||
case "add-hosts":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets add-hosts [sub command] [options] [args]",
|
||||
"Usage: threshold host-sets add-hosts [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows adding hosts to host set resources, if the types match and the operation is allowed by the given host set type. Example:",
|
||||
"",
|
||||
" Add static-type hosts to a static-type host set:",
|
||||
"",
|
||||
` $ boundary host-sets add-hosts -id hsst_1234567890 -host hst_1234567890 -host hst_0987654321`,
|
||||
` $ threshold host-sets add-hosts -id hsst_1234567890 -host hst_1234567890 -host hst_0987654321`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
case "remove-hosts":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets remove-hosts [sub command] [options] [args]",
|
||||
"Usage: threshold host-sets remove-hosts [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows removing hosts from host set resources, if the types match and the operation is allowed by the given host set type. Example:",
|
||||
"",
|
||||
" Remove static-type hosts from a static-type host set:",
|
||||
"",
|
||||
` $ boundary host-sets remove-hosts -id hsst_1234567890 -host hst_0987654321`,
|
||||
` $ threshold host-sets remove-hosts -id hsst_1234567890 -host hst_0987654321`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
case "set-hosts":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets set-hosts [sub command] [options] [args]",
|
||||
"Usage: threshold host-sets set-hosts [sub command] [options] [args]",
|
||||
"",
|
||||
" This command allows setting the complete set of hosts on host set resources, if the types match and the operation is allowed by the given host set type. Example:",
|
||||
"",
|
||||
" Set the complete set of static-type hosts on a static-type host set:",
|
||||
"",
|
||||
` $ boundary host-sets remove-hosts -id hsst_1234567890 -host hst_1234567890`,
|
||||
` $ threshold host-sets remove-hosts -id hsst_1234567890 -host hst_1234567890`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
@@ -153,7 +153,7 @@ func (c *Command) Run(args []string) int {
|
||||
|
||||
case "list":
|
||||
if c.FlagHostCatalogId == "" {
|
||||
c.PrintCliError(errors.New("HostCatalog ID must be passed in via -host-catalog-id or BOUNDARY_HOST_CATALOG_ID"))
|
||||
c.PrintCliError(errors.New("HostCatalog ID must be passed in via -host-catalog-id or THRESHOLD_HOST_CATALOG_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
@@ -35,22 +35,22 @@ func (c *PluginCommand) extraPluginHelpFunc(helpMap map[string]func() string) st
|
||||
switch c.Func {
|
||||
case "create":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets create plugin [options] [args]",
|
||||
"Usage: threshold host-sets create plugin [options] [args]",
|
||||
"",
|
||||
" Create a host set of a type provided by a plugin. Example:",
|
||||
"",
|
||||
` $ boundary host-sets create plugin -host-catalog-id hcst_1234567890 -name prodops -description "Plugin host-set for ProdOps"`,
|
||||
` $ threshold host-sets create plugin -host-catalog-id hcst_1234567890 -name prodops -description "Plugin host-set for ProdOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets update plugin [options] [args]",
|
||||
"Usage: threshold host-sets update plugin [options] [args]",
|
||||
"",
|
||||
" Update a host set of a type provided by a plugin given its ID. Example:",
|
||||
"",
|
||||
` $ boundary host-sets update plugin -id hsplg_1234567890 -name "devops" -description "Plugin host-set for DevOps"`,
|
||||
` $ threshold host-sets update plugin -id hsplg_1234567890 -name "devops" -description "Plugin host-set for DevOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
@@ -85,7 +85,7 @@ func extraPluginFlagsFuncImpl(c *PluginCommand, set *base.FlagSets, f *base.Flag
|
||||
"indicating the amount of time that should elapse between syncs of the host set. " +
|
||||
"The interval will be applied to the end of the previous sync operation, not the start. " +
|
||||
"Setting to any negative value will disable syncing for that host set; setting to null " +
|
||||
"will cause the set to use Boundary's default. The default may change between releases.",
|
||||
"will cause the set to use Threshold's default. The default may change between releases.",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,7 +153,7 @@ func (c *PluginCommand) Run(args []string) int {
|
||||
|
||||
case "create":
|
||||
if c.FlagHostCatalogId == "" {
|
||||
c.PrintCliError(errors.New("HostCatalog ID must be passed in via -host-catalog-id or BOUNDARY_HOST_CATALOG_ID"))
|
||||
c.PrintCliError(errors.New("HostCatalog ID must be passed in via -host-catalog-id or THRESHOLD_HOST_CATALOG_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
@@ -12,22 +12,22 @@ func (c *StaticCommand) extraStaticHelpFunc(helpMap map[string]func() string) st
|
||||
switch c.Func {
|
||||
case "create":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets create static [options] [args]",
|
||||
"Usage: threshold host-sets create static [options] [args]",
|
||||
"",
|
||||
" Create a static-type host set. Example:",
|
||||
"",
|
||||
` $ boundary host-sets create static -name prodops -description "Static host-set for ProdOps"`,
|
||||
` $ threshold host-sets create static -name prodops -description "Static host-set for ProdOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary host-sets update static [options] [args]",
|
||||
"Usage: threshold host-sets update static [options] [args]",
|
||||
"",
|
||||
" Update a static-type host set given its ID. Example:",
|
||||
"",
|
||||
` $ boundary host-sets update static -id hsst_1234567890 -name "devops" -description "Static host-set for DevOps"`,
|
||||
` $ threshold host-sets update static -id hsst_1234567890 -name "devops" -description "Static host-set for DevOps"`,
|
||||
"",
|
||||
"",
|
||||
})
|
||||
|
||||
@@ -135,7 +135,7 @@ func (c *StaticCommand) Run(args []string) int {
|
||||
|
||||
case "create":
|
||||
if c.FlagHostCatalogId == "" {
|
||||
c.PrintCliError(errors.New("HostCatalog ID must be passed in via -host-catalog-id or BOUNDARY_HOST_CATALOG_ID"))
|
||||
c.PrintCliError(errors.New("HostCatalog ID must be passed in via -host-catalog-id or THRESHOLD_HOST_CATALOG_ID"))
|
||||
return base.CommandUserError
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user