Documentation
¶
Index ¶
- Constants
- type BrowseCommand
- type BrowseCommandOption
- type BrowseOption
- type CreateUpdateProjectVaribleOption
- type IssueTemplateCommand
- type IssueTemplateCommnadOption
- type JobCommand
- type JobCommandOption
- type LintCommand
- type ListJobOption
- type ListPipelineOption
- type ListProjectOption
- type ListUserOption
- type MergeRequestTemplateCommand
- type MergeRequestTemplateCommnadOption
- type PipelineCommand
- type PipelineCommandOption
- type PipelineOperation
- type PipelineOption
- type ProjectCommand
- type ProjectCommnadOption
- type ProjectVariableCommand
- type ProjectVariableOperation
- type ProjectVaribleCommandOption
- type UserCommand
- type UserCommandOption
Constants ¶
View Source
const ( ExitCodeOK int = iota //0 ExitCodeError int = iota //1 ExitCodeFileError int = iota //2 )
View Source
const IssueTemplateDir = ".gitlab/issue_templates"
View Source
const MergeRequestTemplateDir = ".gitlab/merge_request_templates"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowseCommand ¶
type BrowseCommand struct {
Ui ui.Ui
Provider lab.Provider
GitClient git.Client
Opener cmd.URLOpener
}
func (*BrowseCommand) Help ¶
func (c *BrowseCommand) Help() string
func (*BrowseCommand) Run ¶
func (c *BrowseCommand) Run(args []string) int
func (*BrowseCommand) Synopsis ¶
func (c *BrowseCommand) Synopsis() string
type BrowseCommandOption ¶ added in v0.2.0
type BrowseCommandOption struct {
BrowseOption *BrowseOption `group:"Global Options"`
}
type BrowseOption ¶ added in v0.4.0
type BrowseOption struct {
Subpage string `short:"s" long:"subpage" description:"open project sub page"`
URL bool `short:"u" long:"url" description:"show project url"`
Copy bool `short:"c" long:"copy" description:"copy project url to clipboard"`
Project string `short:"p" long:"project" description:"command target specific project"`
}
func (*BrowseOption) NameSpaceAndProject ¶ added in v0.4.0
func (g *BrowseOption) NameSpaceAndProject() (group, subgroup, project string)
type CreateUpdateProjectVaribleOption ¶ added in v0.5.0
type IssueTemplateCommand ¶ added in v0.5.2
func (*IssueTemplateCommand) Help ¶ added in v0.5.2
func (c *IssueTemplateCommand) Help() string
func (*IssueTemplateCommand) Run ¶ added in v0.5.2
func (c *IssueTemplateCommand) Run(args []string) int
func (*IssueTemplateCommand) Synopsis ¶ added in v0.5.2
func (c *IssueTemplateCommand) Synopsis() string
type IssueTemplateCommnadOption ¶ added in v0.5.2
type IssueTemplateCommnadOption struct {
}
type JobCommand ¶ added in v0.4.0
func (*JobCommand) Help ¶ added in v0.4.0
func (c *JobCommand) Help() string
func (*JobCommand) Run ¶ added in v0.4.0
func (c *JobCommand) Run(args []string) int
func (*JobCommand) Synopsis ¶ added in v0.4.0
func (c *JobCommand) Synopsis() string
type JobCommandOption ¶ added in v0.4.0
type JobCommandOption struct {
ListOption *ListJobOption `group:"List Options"`
}
type LintCommand ¶ added in v0.2.0
func (*LintCommand) Help ¶ added in v0.2.0
func (c *LintCommand) Help() string
func (*LintCommand) Run ¶ added in v0.2.0
func (c *LintCommand) Run(args []string) int
func (*LintCommand) Synopsis ¶ added in v0.2.0
func (c *LintCommand) Synopsis() string
type ListJobOption ¶ added in v0.4.0
type ListPipelineOption ¶ added in v0.4.0
type ListPipelineOption 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"`
}
type ListProjectOption ¶ added in v0.4.0
type ListProjectOption struct {
Num int `short:"n" long:"num" value-name:"<num>" default:"20" default-mask:"20" description:"Limit the number of project to output."`
Sort string `` /* 133-byte string literal not displayed */
OrderBy string `` /* 163-byte string literal not displayed */
Owned bool `short:"w" long:"owned" description:"Limit by projects owned by the current user"`
Membership bool `short:"m" long:"member-ship" description:"Limit by projects that the current user is a member of"`
}
type ListUserOption ¶ added in v0.3.0
type ListUserOption struct {
Num int `short:"n" long:"num" value-name:"<num>" default:"20" default-mask:"20" description:"Limit the number of search to output."`
Search string `short:"s" long:"search" value-name:"<search word>" description:"Search for specific users"`
AllProject bool `short:"A" long:"all-project" description:"Print the user of all projects"`
}
type MergeRequestTemplateCommand ¶ added in v0.5.2
func (*MergeRequestTemplateCommand) Help ¶ added in v0.5.2
func (c *MergeRequestTemplateCommand) Help() string
func (*MergeRequestTemplateCommand) Run ¶ added in v0.5.2
func (c *MergeRequestTemplateCommand) Run(args []string) int
func (*MergeRequestTemplateCommand) Synopsis ¶ added in v0.5.2
func (c *MergeRequestTemplateCommand) Synopsis() string
type MergeRequestTemplateCommnadOption ¶ added in v0.5.2
type MergeRequestTemplateCommnadOption struct {
}
type PipelineCommand ¶ added in v0.2.0
func (*PipelineCommand) Help ¶ added in v0.2.0
func (c *PipelineCommand) Help() string
func (*PipelineCommand) Run ¶ added in v0.2.0
func (c *PipelineCommand) Run(args []string) int
func (*PipelineCommand) Synopsis ¶ added in v0.2.0
func (c *PipelineCommand) Synopsis() string
type PipelineCommandOption ¶ added in v0.2.0
type PipelineCommandOption struct {
ListOption *ListPipelineOption `group:"List Options"`
}
type PipelineOperation ¶ added in v0.3.0
type PipelineOperation int
const ( ListPipeline PipelineOperation = iota ShowPipeline )
type PipelineOption ¶ added in v0.2.0
type PipelineOption struct {
}
type ProjectCommand ¶ added in v0.2.0
func (*ProjectCommand) Help ¶ added in v0.2.0
func (c *ProjectCommand) Help() string
func (*ProjectCommand) Run ¶ added in v0.2.0
func (c *ProjectCommand) Run(args []string) int
func (*ProjectCommand) Synopsis ¶ added in v0.2.0
func (c *ProjectCommand) Synopsis() string
type ProjectCommnadOption ¶ added in v0.2.0
type ProjectCommnadOption struct {
OutputOption *ListProjectOption `group:"List Options"`
}
type ProjectVariableCommand ¶ added in v0.5.0
func (*ProjectVariableCommand) Help ¶ added in v0.5.0
func (c *ProjectVariableCommand) Help() string
func (*ProjectVariableCommand) Run ¶ added in v0.5.0
func (c *ProjectVariableCommand) Run(args []string) int
func (*ProjectVariableCommand) Synopsis ¶ added in v0.5.0
func (c *ProjectVariableCommand) Synopsis() string
type ProjectVariableOperation ¶ added in v0.5.0
type ProjectVariableOperation int
const ( CreateProjectVariable ProjectVariableOperation = iota UpdateProjectVariable RemoveProjectVariable ListProjectVariable )
type ProjectVaribleCommandOption ¶ added in v0.5.0
type ProjectVaribleCommandOption struct {
CreateUpdateOption *CreateUpdateProjectVaribleOption `group:"List Options"`
}
type UserCommand ¶ added in v0.3.0
func (*UserCommand) Help ¶ added in v0.3.0
func (c *UserCommand) Help() string
func (*UserCommand) Run ¶ added in v0.3.0
func (c *UserCommand) Run(args []string) int
func (*UserCommand) Synopsis ¶ added in v0.3.0
func (c *UserCommand) Synopsis() string
type UserCommandOption ¶ added in v0.3.0
type UserCommandOption struct {
ListOption *ListUserOption `group:"List Options"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.