mirror of
https://github.com/restic/restic.git
synced 2025-12-16 16:12:54 +00:00
27 lines
464 B
Go
27 lines
464 B
Go
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newKeyCommand() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "key",
|
|
Short: "Manage keys (passwords)",
|
|
Long: `
|
|
The "key" command allows you to set multiple access keys or passwords
|
|
per repository.
|
|
`,
|
|
DisableAutoGenTag: true,
|
|
GroupID: cmdGroupDefault,
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
newKeyAddCommand(),
|
|
newKeyListCommand(),
|
|
newKeyPasswdCommand(),
|
|
newKeyRemoveCommand(),
|
|
)
|
|
return cmd
|
|
}
|