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: `
|
2024-02-04 20:10:23 +05:30
|
|
|
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
|
2018-04-14 18:40:57 -06:00
|
|
|
}
|