Merge remote-tracking branch 'fw42/rename_change_to_passwd'

This commit is contained in:
Alexander Neumann 2015-04-25 11:11:27 +02:00
commit 87a1946417
2 changed files with 4 additions and 4 deletions

View file

@ -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)
}

View file

@ -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