branches

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdBranchesList = cli.Command{
	Name:        "list",
	Aliases:     []string{"ls"},
	Usage:       "List branches of the repository",
	Description: `List branches of the repository`,
	ArgsUsage:   " ",
	Action:      RunBranchesList,
	Flags:       CmdBranchesListFlags,
}

CmdBranchesList represents a sub command of branches to list branches

View Source
var CmdBranchesListFlags = append([]cli.Flag{
	branchFieldsFlag,
	&flags.PaginationPageFlag,
	&flags.PaginationLimitFlag,
}, flags.AllDefaultFlags...)

CmdBranchesListFlags Flags for command list

View Source
var CmdBranchesProtect = cli.Command{
	Name:        "protect",
	Aliases:     []string{"P"},
	Usage:       "Protect branches",
	Description: `Block actions push/merge on specified branches`,
	ArgsUsage:   "<branch>",
	Action:      RunBranchesProtect,
	Flags:       CmdBranchesProtectFlags,
}

CmdBranchesProtect represents a sub command of branches to protect a branch

View Source
var CmdBranchesProtectFlags = append([]cli.Flag{
	branchFieldsFlag,
	&flags.PaginationPageFlag,
	&flags.PaginationLimitFlag,
}, flags.AllDefaultFlags...)

CmdBranchesProtectFlags Flags for command protect/unprotect

View Source
var CmdBranchesUnprotect = cli.Command{
	Name:        "unprotect",
	Aliases:     []string{"U"},
	Usage:       "Unprotect branches",
	Description: `Suppress existing protections on specified branches`,
	ArgsUsage:   "<branch>",
	Action:      RunBranchesProtect,
	Flags:       CmdBranchesProtectFlags,
}

CmdBranchesUnprotect represents a sub command of branches to protect a branch

Functions

func RunBranchesList

func RunBranchesList(_ stdctx.Context, cmd *cli.Command) error

RunBranchesList list branches

func RunBranchesProtect

func RunBranchesProtect(_ stdctx.Context, cmd *cli.Command) error

RunBranchesProtect function to protect/unprotect a list of branches

Types

This section is empty.

Jump to

Keyboard shortcuts

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