Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowseOption ¶
type BrowseOption struct {
Browse bool `short:"b" long:"browse" description:"Browse issue."`
}
type ListOption ¶
type ListOption struct { Num int `short:"n" long:"num" value-name:"<num>" default:"20" default-mask:"20" description:"Limit the number of pipeline to output."` Sort string `` /* 134-byte string literal not displayed */ Scope string `short:"c" long:"scope" description:"The scope of pipelines, one of: running, pending, finished, branches, tags"` States string `short:"t" long:"states" description:" The status of pipelines, one of: running, pending, success, failed, canceled, skipped"` OrderBy string `short:"o" long:"orderby" default:"id" default-mask:"id" description:"Order pipelines by id, status, ref, or user_id"` Ref string `short:"s" long:"ref" description:"The ref of pipelines, Show only pipelines for specified branch, tag"` CurrentRef bool `short:"r" long:"current-ref" description:"Shorthand of the ref option for current branch"` }
type MethodFactory ¶
type MethodFactory interface {
CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory api.APIClientFactory) internal.Method
}
type MockMethodFactory ¶
type MockMethodFactory struct{}
func (*MockMethodFactory) CreateMethod ¶
func (c *MockMethodFactory) CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory api.APIClientFactory) internal.Method
type Option ¶
type Option struct { ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"` ListOption *ListOption `group:"List Options"` BrowseOption *BrowseOption `group:"Brwose Options"` }
type PipelineCommand ¶
type PipelineCommand struct { UI ui.UI RemoteCollecter gitutil.Collecter MethodFactory MethodFactory }
func (*PipelineCommand) Help ¶
func (c *PipelineCommand) Help() string
func (*PipelineCommand) Run ¶
func (c *PipelineCommand) Run(args []string) int
func (*PipelineCommand) Synopsis ¶
func (c *PipelineCommand) Synopsis() string
type PipelineMethodFacotry ¶
type PipelineMethodFacotry struct{}
func (*PipelineMethodFacotry) CreateMethod ¶
func (c *PipelineMethodFacotry) CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory api.APIClientFactory) internal.Method
Click to show internal directories.
Click to hide internal directories.