From dead2b7e930b23fcfa271e9f38610dc9e59449fb Mon Sep 17 00:00:00 2001 From: Florian Weingarten Date: Sat, 25 Apr 2015 02:42:52 -0400 Subject: [PATCH] rename "change" to "passwd" --- cmd/restic/cmd_key.go | 4 ++-- testsuite/test-key-add-remove.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/restic/cmd_key.go b/cmd/restic/cmd_key.go index 0af3e1198..285c3a002 100644 --- a/cmd/restic/cmd_key.go +++ b/cmd/restic/cmd_key.go @@ -114,7 +114,7 @@ func change_password(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 delete_key(s, id) - case "change": + case "passwd": return change_password(s) } diff --git a/testsuite/test-key-add-remove.sh b/testsuite/test-key-add-remove.sh index 420bd4336..b012ea552 100755 --- a/testsuite/test-key-add-remove.sh +++ b/testsuite/test-key-add-remove.sh @@ -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