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 ¶
RunBranchesList list branches
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.