Help us shape the future of Go! Take the 2026 Go Developer Survey

group

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupNameFromCommandArgs

func GroupNameFromCommandArgs(cmd *cobra.Command, args []string) (string, error)

GroupNameFromCommandArgs is a utility function for commands that assume the first argument is a group name

func NewCreateGroupCmd

func NewCreateGroupCmd(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

func NewDeleteGroupCmd

func NewDeleteGroupCmd(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

func NewEditGroupCmd

func NewEditGroupCmd(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

func NewGetGroupsCmd

func NewGetGroupsCmd(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	Group     *gitlab.CreateGroupOptions
	Namespace string

	Out string
	// contains filtered or unexported fields
}

func NewCreateOptions

func NewCreateOptions(ioStreams genericiooptions.IOStreams) *CreateOptions

func (*CreateOptions) AddFlags

func (o *CreateOptions) AddFlags(cmd *cobra.Command)

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*CreateOptions) Run

func (o *CreateOptions) Run(args []string) error

Run executes a list subcommand using the specified options.

func (*CreateOptions) Validate

func (o *CreateOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

type DeleteOptions

type DeleteOptions struct {
	Out string
	// contains filtered or unexported fields
}

func NewDeleteOptions

func NewDeleteOptions(ioStreams genericiooptions.IOStreams) *DeleteOptions

func (*DeleteOptions) Complete

func (o *DeleteOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*DeleteOptions) Run

func (o *DeleteOptions) Run(args []string) error

Run executes a list subcommand using the specified options.

func (*DeleteOptions) Validate

func (o *DeleteOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

type EditOptions

type EditOptions struct {
	Group *gitlab.UpdateGroupOptions

	Out string
	// contains filtered or unexported fields
}

func NewEditOptions

func NewEditOptions(ioStreams genericiooptions.IOStreams) *EditOptions

func (*EditOptions) AddFlags

func (o *EditOptions) AddFlags(cmd *cobra.Command)

func (*EditOptions) Complete

func (o *EditOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*EditOptions) Run

func (o *EditOptions) Run(args []string) error

Run executes a list subcommand using the specified options.

func (*EditOptions) Validate

func (o *EditOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

type ListOptions

type ListOptions struct {
	FromGroup string
	Out       string
	AllGroups bool
	// contains filtered or unexported fields
}

func NewListOptions

func NewListOptions(ioStreams genericiooptions.IOStreams) *ListOptions

func (*ListOptions) AddFlags

func (o *ListOptions) AddFlags(cmd *cobra.Command)

func (*ListOptions) Complete

func (o *ListOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*ListOptions) Run

func (o *ListOptions) Run(args []string) error

Run executes a list subcommand using the specified options.

func (*ListOptions) Validate

func (o *ListOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL