commands

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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
	RemoteCollecter gitutil.Collecter
	GitClient       git.Client
	Clipboard       clipboard.Clipboard
	Opener          browse.URLOpener
	ClientFactory   api.APIClientFactory
}

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 {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
	BrowseOption         *BrowseOption                  `group:"Browse 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"`
}

type CreateUpdateProjectVaribleOption added in v0.5.0

type CreateUpdateProjectVaribleOption struct {
	Add    bool `short:"a" long:"add" description:"Create/Add project variable."`
	Update bool `short:"u" long:"update" description:"Update project variable."`
	Delete bool `short:"d" long:"delete" description:"Delete project variable."`
}

type IssueTemplateCommand added in v0.5.2

type IssueTemplateCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	ClientFactory   api.APIClientFactory
}

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 {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
}

type JobCommand added in v0.4.0

type JobCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	ClientFactory   api.APIClientFactory
}

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 {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
	ListOption           *ListJobOption                 `group:"List Options"`
}

type LintCommand added in v0.2.0

type LintCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	ClientFactory   api.APIClientFactory
}

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 ListJobOption struct {
	Num int  `short:"n" long:"num" value-name:"<num>" default:"20" default-mask:"20" description:"Limit the number of search to output."`
	Log bool `short:"t" long:"log" description:"Get a trace of a specific job of a project."`
}

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

type MergeRequestTemplateCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	ClientFactory   api.APIClientFactory
}

func (*MergeRequestTemplateCommand) Help added in v0.5.2

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 {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
}

type ProjectCommand added in v0.2.0

type ProjectCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	ClientFactory   api.APIClientFactory
}

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 {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
	OutputOption         *ListProjectOption             `group:"List Options"`
}

type ProjectVariableCommand added in v0.5.0

type ProjectVariableCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	ClientFactory   api.APIClientFactory
}

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 {
	ProjectProfileOption *internal.ProjectProfileOption    `group:"Project, Profile Options"`
	CreateUpdateOption   *CreateUpdateProjectVaribleOption `group:"List Options"`
}

type UserCommand added in v0.3.0

type UserCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	ClientFactory   api.APIClientFactory
}

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 {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
	ListOption           *ListUserOption                `group:"List Options"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL