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

Commit 3be71fc

Browse files
committed
Add key arg to env read command
1 parent 83244a8 commit 3be71fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internals/secrethub/env_read.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type EnvReadCommand struct {
1010
io ui.IO
1111
newClient newClientFunc
1212
environment *environment
13+
key string
1314
}
1415

1516
// NewEnvReadCommand creates a new EnvReadCommand.
@@ -24,6 +25,7 @@ func NewEnvReadCommand(io ui.IO, newClient newClientFunc) *EnvReadCommand {
2425
// Register adds a CommandClause and it's args and flags to a Registerer.
2526
func (cmd *EnvReadCommand) Register(r command.Registerer) {
2627
clause := r.Command("read", "Read the value of a single environment variable.")
28+
clause.Arg("key", "the key of the environment variable to read").StringVar(&cmd.key)
2729

2830
cmd.environment.register(clause)
2931

0 commit comments

Comments
 (0)