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

Commit e16df34

Browse files
committed
Move update-passphrase command to "credential" parent command
This deprecates "secrethub config update-passphrase" command, in favor of "secrethub credential update-passphrase".
1 parent bdcabec commit e16df34

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

internals/secrethub/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func NewConfigCommand(io ui.IO, store CredentialConfig) *ConfigCommand {
2121

2222
// Register registers the command and its sub-commands on the provided Registerer.
2323
func (cmd *ConfigCommand) Register(r command.Registerer) {
24-
clause := r.Command("config", "Manage your local configuration.")
24+
clause := r.Command("config", "Manage your local configuration.").Hidden()
2525
NewConfigUpdatePassphraseCommand(cmd.io, cmd.credentialStore).Register(clause)
2626
NewConfigUpgradeCommand().Register(clause)
2727
}

internals/secrethub/credential.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ func (cmd *CredentialCommand) Register(r command.Registerer) {
2727
NewCredentialListCommand(cmd.io, cmd.clientFactory.NewClient).Register(clause)
2828
NewCredentialBackupCommand(cmd.io, cmd.clientFactory.NewClient).Register(clause)
2929
NewCredentialDisableCommand(cmd.io, cmd.clientFactory.NewClient).Register(clause)
30+
NewConfigUpdatePassphraseCommand(cmd.io, cmd.credentialStore).Register(clause)
3031
}

0 commit comments

Comments
 (0)