mirror of
https://github.com/restic/restic.git
synced 2026-05-28 04:35:41 -04:00
key: include full command name in subcommand descriptions
This commit is contained in:
parent
df03e8a0ec
commit
850ab61cdf
4 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
===========
|
||||
|
|
|
|||
Loading…
Reference in a new issue