Skip to content
Snippets Groups Projects

feat: rotate personal, project or group access tokens

1 unresolved thread
1 file
+ 6
2
Compare changes
  • Side-by-side
  • Inline
+ 6
2
@@ -4,16 +4,20 @@ import (
"github.com/spf13/cobra"
"gitlab.com/gitlab-org/cli/commands/cmdutils"
"gitlab.com/gitlab-org/cli/commands/token/create"
"gitlab.com/gitlab-org/cli/commands/token/revoke"
"gitlab.com/gitlab-org/cli/commands/token/rotate"
)
func NewTokenCmd(f *cmdutils.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "token",
Short: "Manage personal, project, or group tokens",
Aliases: []string{"tok"},
Short: "Manage personal, project or group tokens",
Aliases: []string{"token"},
}
cmdutils.EnableRepoOverride(cmd, f)
cmd.AddCommand(create.NewCmdCreate(f, nil))
cmd.AddCommand(revoke.NewCmdRevoke(f, nil))
cmd.AddCommand(rotate.NewCmdRotate(f, nil))
return cmd
}
Loading