Files
restic/cmd/restic/cmd_key.go

27 lines
544 B
Go
Raw Normal View History

2014-11-25 22:52:53 +01:00
package main
import (
2017-03-08 20:17:30 +01:00
"github.com/spf13/cobra"
2014-11-25 22:52:53 +01:00
)
2025-09-14 17:21:30 +02:00
func newKeyCommand(globalOptions *GlobalOptions) *cobra.Command {
2025-02-07 18:28:56 +01:00
cmd := &cobra.Command{
Use: "key",
Short: "Manage keys (passwords)",
Long: `
The "key" command allows you to set multiple access keys or passwords
per repository.
`,
2025-02-07 18:28:56 +01:00
DisableAutoGenTag: true,
GroupID: cmdGroupDefault,
}
2014-12-07 16:30:52 +01:00
2025-02-07 18:28:56 +01:00
cmd.AddCommand(
2025-09-14 17:21:30 +02:00
newKeyAddCommand(globalOptions),
newKeyListCommand(globalOptions),
newKeyPasswdCommand(globalOptions),
newKeyRemoveCommand(globalOptions),
2025-02-07 18:28:56 +01:00
)
return cmd
}