Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit b535ac9

Browse files
committed
Add to help text of env commands that they are in beta
1 parent e5c5aea commit b535ac9

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

internals/secrethub/env.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ func NewEnvCommand(io ui.IO, newClient newClientFunc) *EnvCommand {
2121

2222
// Register registers the command and its sub-commands on the provided Registerer.
2323
func (cmd *EnvCommand) Register(r command.Registerer) {
24-
clause := r.Command("env", "Manage environment variables.").Hidden() // The command is hidden, because it's still in beta.
24+
clause := r.Command("env", "[BETA] Manage environment variables.").Hidden()
25+
clause.HelpLong("This command is hidden because it is still in beta. Future versions may break.")
2526
NewEnvReadCommand(cmd.io, cmd.newClient).Register(clause)
2627
NewEnvListCommand(cmd.io).Register(clause)
2728
}

internals/secrethub/env_ls.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ func NewEnvListCommand(io ui.IO) *EnvListCommand {
2323

2424
// Register adds a CommandClause and it's args and flags to a Registerer.
2525
func (cmd *EnvListCommand) Register(r command.Registerer) {
26-
clause := r.Command("ls", "List environment variable keys that will be injected with secrets.")
26+
clause := r.Command("ls", "[BETA] List environment variable keys that will be injected with secrets.")
27+
clause.HelpLong("This command is hidden because it is still in beta. Future versions may break.")
2728
clause.Alias("list")
2829

2930
cmd.environment.register(clause)

internals/secrethub/env_read.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ func NewEnvReadCommand(io ui.IO, newClient newClientFunc) *EnvReadCommand {
2626

2727
// Register adds a CommandClause and it's args and flags to a Registerer.
2828
func (cmd *EnvReadCommand) Register(r command.Registerer) {
29-
clause := r.Command("read", "Read the value of a single environment variable.")
29+
clause := r.Command("read", "[BETA] Read the value of a single environment variable.")
30+
clause.HelpLong("This command is hidden because it is still in beta. Future versions may break.")
3031
clause.Arg("key", "the key of the environment variable to read").StringVar(&cmd.key)
3132

3233
cmd.environment.register(clause)

0 commit comments

Comments
 (0)