mirror of
https://github.com/restic/restic.git
synced 2025-12-13 16:43:10 +00:00
27 lines
544 B
Go
27 lines
544 B
Go
package main
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func newKeyCommand(globalOptions *GlobalOptions) *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(globalOptions),
|
|
newKeyListCommand(globalOptions),
|
|
newKeyPasswdCommand(globalOptions),
|
|
newKeyRemoveCommand(globalOptions),
|
|
)
|
|
return cmd
|
|
}
|