mr

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitCodeOK        int = iota //0
	ExitCodeError     int = iota //1
	ExitCodeFileError int = iota //2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowseOption added in v0.6.0

type BrowseOption struct {
	Browse bool `short:"b" long:"browse" description:"Browse merge request."`
}

type CreateUpdateOption added in v0.6.0

type CreateUpdateOption 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"`
	Template     string `` /* 133-byte string literal not displayed */
	SourceBranch string `long:"source" value-name:"<source branch>" description:"The source branch"`
	TargetBranch string `long:"target" value-name:"<target branch>" default:"master" default-mask:"master" description:"The target branch"`
	StateEvent   string `long:"state-event" value-name:"<state>" description:"Change the status. \"opened\", \"closed\""`
	AssigneeID   int    `long:"cu-assignee-id" value-name:"<assignee id>" description:"The ID of the user to assign the merge request to."`
	MilestoneID  int    `` /* 126-byte string literal not displayed */
}

type ListOption added in v0.6.0

type ListOption 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 */
	Search     string `short:"s" long:"search"  value-name:"<search word>" description:"Search merge request against their title and description."`
	Milestone  string `long:"milestone"  value-name:"<milestone>" description:"Print merge requests for a specific milestone. "`
	AuthorID   int    `long:"author-id"  value-name:"<auther id>" description:"Print merge requests created by the given user id"`
	AssigneeID int    `long:"assignee-id"  value-name:"<assignee id>" description:"Print merge requests assigned to the given user id."`
	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"`
}

type MergeRequestCommand

type MergeRequestCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	GitClient       git.Client
	ClientFactory   lab.APIClientFactory
	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 Option added in v0.6.0

type Option struct {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
	CreateUpdateOption   *CreateUpdateOption            `group:"Create, Update Options"`
	ListOption           *ListOption                    `group:"List Options"`
	ShowOption           *ShowOption                    `group:"Show Options"`
	BrowseOption         *BrowseOption                  `group:"Browse Options"`
}

type ShowOption added in v0.6.0

type ShowOption struct {
	NoComment bool `long:"no-comment" description:"Not print a list of comments for a spcific merge request."`
}

Jump to

Keyboard shortcuts

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