From 850ab61cdfbf1200f804743256a700fdbce4da66 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 16 May 2026 11:42:03 +0200 Subject: [PATCH] key: include full command name in subcommand descriptions --- cmd/restic/cmd_key_add.go | 2 +- cmd/restic/cmd_key_list.go | 2 +- cmd/restic/cmd_key_passwd.go | 2 +- cmd/restic/cmd_key_remove.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/restic/cmd_key_add.go b/cmd/restic/cmd_key_add.go index 5df3819ac..f83a048ab 100644 --- a/cmd/restic/cmd_key_add.go +++ b/cmd/restic/cmd_key_add.go @@ -20,7 +20,7 @@ func newKeyAddCommand(globalOptions *global.Options) *cobra.Command { Use: "add", Short: "Add a new key (password) to the repository; returns the new key ID", Long: ` -The "add" sub-command creates a new key and validates the key. Returns the new key ID. +The "key add" command creates a new key and validates the key. Returns the new key ID. EXIT STATUS =========== diff --git a/cmd/restic/cmd_key_list.go b/cmd/restic/cmd_key_list.go index 73527ae48..a7828b44f 100644 --- a/cmd/restic/cmd_key_list.go +++ b/cmd/restic/cmd_key_list.go @@ -20,7 +20,7 @@ func newKeyListCommand(globalOptions *global.Options) *cobra.Command { Use: "list", Short: "List keys (passwords)", Long: ` -The "list" sub-command lists all the keys (passwords) associated with the repository. +The "key list" command lists all the keys (passwords) associated with the repository. Returns the key ID, username, hostname, created time and if it's the current key being used to access the repository. diff --git a/cmd/restic/cmd_key_passwd.go b/cmd/restic/cmd_key_passwd.go index 51ed7aa0e..2f4a9507f 100644 --- a/cmd/restic/cmd_key_passwd.go +++ b/cmd/restic/cmd_key_passwd.go @@ -20,7 +20,7 @@ func newKeyPasswdCommand(globalOptions *global.Options) *cobra.Command { Use: "passwd", Short: "Change key (password); creates a new key ID and removes the old key ID, returns new key ID", Long: ` -The "passwd" sub-command creates a new key, validates the key and removes the old key ID. +The "key passwd" command creates a new key, validates the key and removes the old key ID. Returns the new key ID. EXIT STATUS diff --git a/cmd/restic/cmd_key_remove.go b/cmd/restic/cmd_key_remove.go index 22a1e8cfa..2d85c0122 100644 --- a/cmd/restic/cmd_key_remove.go +++ b/cmd/restic/cmd_key_remove.go @@ -18,8 +18,8 @@ func newKeyRemoveCommand(globalOptions *global.Options) *cobra.Command { Use: "remove [ID]", Short: "Remove key ID (password) from the repository", Long: ` -The "remove" sub-command removes the selected key ID. The "remove" command does not allow -removing the current key being used to access the repository. +The "key remove" command removes the selected key ID. It does not allow removing the +current key being used to access the repository. EXIT STATUS ===========