Merge remote-tracking branch 'fw42/rename_change_to_passwd'
This commit is contained in:
commit
87a1946417
2 changed files with 4 additions and 4 deletions
|
@ -114,7 +114,7 @@ func changePassword(s restic.Server) error {
|
|||
}
|
||||
|
||||
func (cmd CmdKey) Usage() string {
|
||||
return "[list|add|rm|change] [ID]"
|
||||
return "[list|add|rm|passwd] [ID]"
|
||||
}
|
||||
|
||||
func (cmd CmdKey) Execute(args []string) error {
|
||||
|
@ -139,7 +139,7 @@ func (cmd CmdKey) Execute(args []string) error {
|
|||
}
|
||||
|
||||
return deleteKey(s, id)
|
||||
case "change":
|
||||
case "passwd":
|
||||
return changePassword(s)
|
||||
}
|
||||
|
||||
|
|
|
@ -15,9 +15,9 @@ unset RESTIC_PASSWORD
|
|||
RESTIC_PASSWORD=foo run restic init
|
||||
RESTIC_PASSWORD=foo run restic key list
|
||||
|
||||
RESTIC_PASSWORD=foo RESTIC_NEWPASSWORD=foobar run restic key change
|
||||
RESTIC_PASSWORD=foo RESTIC_NEWPASSWORD=foobar run restic key passwd
|
||||
RESTIC_PASSWORD=foobar run restic key list
|
||||
RESTIC_PASSWORD=foobar RESTIC_NEWPASSWORD=foo run restic key change
|
||||
RESTIC_PASSWORD=foobar RESTIC_NEWPASSWORD=foo run restic key passwd
|
||||
|
||||
OLD_PWD=foo
|
||||
for i in {1..3}; do
|
||||
|
|
Loading…
Reference in a new issue