package
0.0.2
Repository: https://github.com/jalitriver/gitlab-cmds.git
Documentation: pkg.go.dev

# Functions

CreateRandomProject creates a project in the parent group specified by parentGroupID.
CreateRandomProjects creates the specified number of projects in the parent group.
DeleteProject deletes the project.
DeleteProjects deletes all the projects in a group (recursively or not) for each project whose full path name matches the regular expression.
GetOptionsXMLFileName returns the location of the options.xml file as specified on the command-line arguments or, if not set as a command-line argument, the default location.
NewGlobalCommand returns a new, initialized GlobalCommand instance having the specified name.
NewProjectsApprovalRulesCommand returns a new, initialized ProjectsApprovalRulesCommand instance having the specified name.
NewProjectsApprovalRulesListCommand returns a new, initialized ProjectsApprovalRulesListCommand instance.
NewProjectsApprovalRulesUpdateCommand returns a new, initialized ProjectsApprovalRulesUpdateCommand instance.
NewProjectsCommand returns a new, initialized ProjectsCommand instance having the specified name.
NewProjectsCreateRandomCommand returns a new, initialized ProjectsCreateRandomCommand instance.
NewProjectsDeleteCommand returns a new, initialized ProjectsDeleteCommand instance.
NewProjectsListCommand returns a new, initialized ProjectsListCommand instance.
NewUsersCommand returns a new, initialized UsersCommand instance having the specified name.
NewUsersListCommand returns a new, initialized UsersListCommand instance.
Peek at the global options which helps to resolve two circular dependencies.

# Structs

Command holds common data needed for each command.
GitlabCommand is a BasicCommand with a Gitlab communications client.
GlobalCommand is used to parse the global command-line arguments and invoke the first subcommand.
GlobalOptions are the options needed by this command.
Options is the top-level structure that holds all the options read from options.xml and from the command-line.
ParentCommand is a BasicCommand with a subcommand map that maps the name of subcommands to their Runner.
ProjectsApprovalRulesCommand provides subcommands for Gitlab project related maintenance.
ProjectsApprovalRulesListCommand implements the command "projects approval-rules list" which lists approval rules in all projects recursively found in a group where the projects are selected by a regular expression.
ProjectsApprovalRulesListOptions are the options needed by this command.
ProjectsApprovalRulesOptions are the options needed by this command.
ProjectsApprovalRulesUpdateCommand implements the command "projects approval-rules update" which updates approval rules in all projects recursively found in a group where the projects are selected by a regular expression.
ProjectsApprovalRulesUpdateOptions are the options needed by this command.
ProjectsCommand provides subcommands for Gitlab project related maintenance.
ProjectsCreateRandomCommand implements the "projects create-random" command which creates random projects en masse.
ProjectsCreateRandomOptions are the options needed by this command.
ProjectsDeleteCommand implements the "projects delete" command which optionally recursively deletes projects in a group where the deleted projects are selected by a regular expression.
ProjectsDeleteOptions are the options needed by this command.
ProjectsListCommand implements the "projects list" command which optionally recursively lists projects in a group where the listed projects are selected by a regular expression.
ProjectsListOptions are the options needed by this command.
ProjectsOptions are the options needed by this command.
UsersCommand provides subcommands for Gitlab project related maintenance.
UsersListCommand implements the "users list" command which lists (or looks up) specific users so they can be used with other commands.
UsersListOptions are the options needed by this command.
UsersOptions are the options needed by this command.

# Interfaces

Runner defines the interface for running commands.