Documentation ¶
Index ¶
- Constants
- type BrowseCommand
- type BrowseCommandOption
- type BrowseType
- type CreateUpdateIssueOption
- type CreateUpdateMergeRequestOption
- type GlobalOption
- type IssueCommand
- type IssueCommnadOption
- type IssueOperation
- type LintCommand
- type ListIssueOption
- type ListMergeRequestOption
- type ListUserOption
- type MergeRequestCommand
- type MergeRequestCommandOption
- type MergeRequestOperation
- type OptionValidator
- type OutputOption
- type PipelineCommand
- type PipelineCommandOption
- type PipelineOperation
- type PipelineOption
- type ProjectCommand
- type ProjectCommnadOption
- type ProjectOption
- type SearchOption
- type UserCommand
- type UserCommandOption
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowseCommand ¶
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 {
GlobalOpt *GlobalOption `group:"Global Options"`
}
type CreateUpdateIssueOption ¶ added in v0.2.0
type CreateUpdateIssueOption struct { Edit bool `` /* 136-byte string literal not displayed */ Title string `short:"i" long:"title" value-name:"<title>" description:"The title of an issue"` Message string `short:"m" long:"message" value-name:"<message>" description:"The message of an issue"` StateEvent string `long:"state-event" description:"Change the status. \"close\", \"reopen\""` AssigneeID int `long:"assignee-id" description:"The ID of assignee."` }
type CreateUpdateMergeRequestOption ¶ added in v0.2.0
type CreateUpdateMergeRequestOption struct { Edit bool `` /* 144-byte string literal not displayed */ Title string `short:"i" long:"title" value-name:"<title>" description:"The title of an merge request"` Message string `short:"m" long:"message" value-name:"<message>" description:"The message of an merge request"` SourceBranch string `short:"s" long:"source" description:"The source branch"` TargetBranch string `short:"t" long:"target" default:"master" default-mask:"master" description:"The target branch"` StateEvent string `long:"state-event" description:"Change the status. \"opened\", \"closed\""` AssigneeID int `long:"assignee-id" description:"The ID of assignee."` }
type GlobalOption ¶ added in v0.2.0
type GlobalOption struct {
Project string `short:"p" long:"project" description:"command target specific project"`
}
func (*GlobalOption) IsValid ¶ added in v0.2.0
func (g *GlobalOption) IsValid() error
func (*GlobalOption) NameSpaceAndProject ¶ added in v0.2.0
func (g *GlobalOption) NameSpaceAndProject() (namespace, project string)
type IssueCommand ¶
type IssueCommand struct { Ui ui.Ui Provider lab.Provider EditFunc func(program, file string) error }
func (*IssueCommand) Help ¶
func (c *IssueCommand) Help() string
func (*IssueCommand) Run ¶
func (c *IssueCommand) Run(args []string) int
func (*IssueCommand) Synopsis ¶
func (c *IssueCommand) Synopsis() string
type IssueCommnadOption ¶ added in v0.2.0
type IssueCommnadOption struct { CreateUpdateOption *CreateUpdateIssueOption `group:"Create, Update Options"` ListOption *ListIssueOption `group:"List Options"` }
type IssueOperation ¶ added in v0.2.0
type IssueOperation int
const ( CreateIssue IssueOperation = iota CreateIssueOnEditor UpdateIssue UpdateIssueOnEditor ShowIssue ListIssue ListIssueAllProject )
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 ListIssueOption ¶ added in v0.2.0
type ListIssueOption struct { Num int `short:"n" long:"num" value-name:"<num>" default:"20" default-mask:"20" description:"Limit the number of issue to output."` State string `` /* 164-byte string literal not displayed */ Scope string `` /* 154-byte string literal not displayed */ OrderBy string `` /* 162-byte string literal not displayed */ Sort string `` /* 131-byte string literal not displayed */ Opened bool `short:"o" long:"opened" description:"Shorthand of the state option for \"--state=opened\"."` Closed bool `short:"c" long:"closed" description:"Shorthand of the state option for \"--state=closed\"."` CreatedMe bool `short:"r" long:"created-me" description:"Shorthand of the scope option for \"--scope=created-by-me\"."` AssignedMe bool `short:"a" long:"assigned-me" description:"Shorthand of the scope option for \"--scope=assigned-by-me\"."` AllProject bool `short:"A" long:"all-project" description:"Print the issue of all projects"` }
func (*ListIssueOption) GetScope ¶ added in v0.2.0
func (l *ListIssueOption) GetScope() string
func (*ListIssueOption) GetState ¶ added in v0.2.0
func (l *ListIssueOption) GetState() string
type ListMergeRequestOption ¶ added in v0.2.0
type ListMergeRequestOption struct { Num int `` /* 129-byte string literal not displayed */ State string `` /* 184-byte string literal not displayed */ Scope string `` /* 154-byte string literal not displayed */ OrderBy string `` /* 170-byte string literal not displayed */ Sort string `` /* 139-byte string literal not displayed */ Opened bool `short:"o" long:"opened" description:"Shorthand of the state option for \"--state=opened\"."` Closed bool `short:"c" long:"closed" description:"Shorthand of the state option for \"--state=closed\"."` Merged bool `short:"g" long:"merged" description:"Shorthand of the state option for \"--state=merged\"."` CreatedMe bool `short:"r" long:"created-me" description:"Shorthand of the scope option for \"--scope=created-by-me\"."` AssignedMe bool `short:"a" long:"assigned-me" description:"Shorthand of the scope option for \"--scope=assigned-by-me\"."` AllProject bool `short:"A" long:"all-project" description:"Print the merge request of all projects"` }
func (*ListMergeRequestOption) GetScope ¶ added in v0.2.0
func (l *ListMergeRequestOption) GetScope() string
func (*ListMergeRequestOption) GetState ¶ added in v0.2.0
func (l *ListMergeRequestOption) GetState() string
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 MergeRequestCommand ¶
type MergeRequestCommand struct { Ui ui.Ui Provider lab.Provider EditFunc func(program, file string) error }
func (*MergeRequestCommand) Help ¶
func (c *MergeRequestCommand) Help() string
func (*MergeRequestCommand) Run ¶
func (c *MergeRequestCommand) Run(args []string) int
func (*MergeRequestCommand) Synopsis ¶
func (c *MergeRequestCommand) Synopsis() string
type MergeRequestCommandOption ¶ added in v0.2.0
type MergeRequestCommandOption struct { CreateUpdateOption *CreateUpdateMergeRequestOption `group:"Create, Update Options"` ListOption *ListMergeRequestOption `group:"List Options"` }
type MergeRequestOperation ¶ added in v0.2.0
type MergeRequestOperation int
const ( CreateMergeRequest MergeRequestOperation = iota CreateMergeRequestOnEditor UpdateMergeRequest UpdateMergeRequestOnEditor ShowMergeRequest ListMergeRequest ListMergeRequestAllProject )
type OptionValidator ¶
type OptionValidator interface {
IsValid(error)
}
type OutputOption ¶ added in v0.2.0
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 { PipelineOption *PipelineOption `group:"Pipeline Options"` OutputOption *OutputOption `group:"Output 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 { 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 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 { ProjectOption *ProjectOption `group:"Project Options"` OutputOption *OutputOption `group:"Output Options"` }
type ProjectOption ¶ added in v0.2.0
type ProjectOption struct { 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 SearchOption ¶ added in v0.2.0
type SearchOption struct { State string `short:"t" long:"state" default:"all" default-mask:"all" description:"just those that are opened, closed or all"` Scope string `short:"c" long:"scope" default:"all" default-mask:"all" description:"given scope: created-by-me, assigned-to-me or all."` OrderBy string `` /* 129-byte string literal not displayed */ Opened bool `short:"e" long:"opened" description:"search state opened"` Closed bool `short:"l" long:"closed" description:"search scope closed"` CreatedMe bool `short:"r" long:"created-me" description:"search scope created-by-me"` AssignedMe bool `short:"g" long:"assigned-me" description:"search scope assigned-to-me"` AllProject bool `short:"a" long:"all-project" description:"search target all project"` }
func (*SearchOption) GetScope ¶ added in v0.2.0
func (s *SearchOption) GetScope() string
func (*SearchOption) GetState ¶ added in v0.2.0
func (s *SearchOption) GetState() string
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"`
}
Click to show internal directories.
Click to hide internal directories.