Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "branch", Short: "Manage branches", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Branch requires a subcommand:") for _, command := range cmd.Commands() { fmt.Println(command.Name()) } }, }
Command represents this folder's command
Functions ¶
Types ¶
type Branch ¶
type Branch struct { Type string `json:"type" mapstructure:"type"` Name string `json:"name" mapstructure:"name"` Target commit.Commit `json:"target" mapstructure:"target"` Links common.Links `json:"links" mapstructure:"links"` MergeStrategies []string `json:"merge_strategies,omitempty" mapstructure:"merge_strategies"` DefaultMergeStrategy string `json:"default_merge_strategy,omitempty" mapstructure:"default_merge_strategy"` }
func GetBranches ¶ added in v0.11.0
GetBranches gets the branches of a repository
func (Branch) GetHeader ¶ added in v0.4.0
GetHeader gets the header for a table
implements common.Tableable
type BranchReference ¶ added in v0.7.0
type BranchReference struct { Type string `json:"type" mapstructure:"type"` Name string `json:"name" mapstructure:"name"` }
func NewReference ¶ added in v0.7.0
func NewReference(name string) *BranchReference
NewReference creates a new BranchReference
Click to show internal directories.
Click to hide internal directories.