@@ -9,28 +9,28 @@ import (
99 "github.com/secrethub/secrethub-cli/internals/secrethub/command"
1010)
1111
12- type ConfigUpdatePassphraseCommand struct {
12+ type CredentialUpdatePassphraseCommand struct {
1313 io ui.IO
1414 credentialStore CredentialConfig
1515}
1616
17- // NewConfigUpdatePassphraseCommand creates a new ConfigUpdatePassphraseCommand .
18- func NewConfigUpdatePassphraseCommand (io ui.IO , credentialStore CredentialConfig ) * ConfigUpdatePassphraseCommand {
19- return & ConfigUpdatePassphraseCommand {
17+ // NewCredentialUpdatePassphraseCommand creates a new CredentialUpdatePassphraseCommand .
18+ func NewCredentialUpdatePassphraseCommand (io ui.IO , credentialStore CredentialConfig ) * CredentialUpdatePassphraseCommand {
19+ return & CredentialUpdatePassphraseCommand {
2020 io : io ,
2121 credentialStore : credentialStore ,
2222 }
2323}
2424
2525// Register registers the command, arguments and flags on the provided Registerer.
26- func (cmd * ConfigUpdatePassphraseCommand ) Register (r command.Registerer ) {
26+ func (cmd * CredentialUpdatePassphraseCommand ) Register (r command.Registerer ) {
2727 clause := r .Command ("update-passphrase" , "Update the passphrase of your local key credential file." )
2828
2929 command .BindAction (clause , cmd .Run )
3030}
3131
3232// Run upgrades the configuration in the profile directory to the new version.
33- func (cmd * ConfigUpdatePassphraseCommand ) Run () error {
33+ func (cmd * CredentialUpdatePassphraseCommand ) Run () error {
3434 if ! cmd .credentialStore .ConfigDir ().Credential ().Exists () {
3535 fmt .Println ("No credentials. Nothing to do." )
3636 return nil
0 commit comments