issue

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: 15 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 CreateUpdateOption

type CreateUpdateOption 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"`
	Template    string `short:"p" long:"template" value-name:"<issue template>" description:"Start the editor with file using issue template"`
	StateEvent  string `long:"state-event" value-name:"<state>" description:"Change the status. \"close\", \"reopen\""`
	AssigneeID  int    `` /* 174-byte string literal not displayed */
	MilestoneID int    `long:"cu-milestone-id" value-name:"<milestone id>" description:"The global ID of a milestone to assign the issue to. "`
}

type IssueCommand

type IssueCommand struct {
	UI              ui.UI
	RemoteCollecter gitutil.Collecter
	MethodFactory   MethodFactory
}

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 IssueMethodFactory added in v0.6.0

type IssueMethodFactory struct{}

func (*IssueMethodFactory) CreateMethod added in v0.6.0

func (c *IssueMethodFactory) CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory api.APIClientFactory) internal.Method

type ListOption

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

type MethodFactory added in v0.6.0

type MethodFactory interface {
	CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory api.APIClientFactory) internal.Method
}

type MockMethodFactory added in v0.6.0

type MockMethodFactory struct{}

func (*MockMethodFactory) CreateMethod added in v0.6.0

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"`
	CreateUpdateOption   *CreateUpdateOption            `group:"Create, Update Options"`
	ListOption           *ListOption                    `group:"List Options"`
	ShowOption           *ShowOption                    `group:"Show Options"`
	BrowseOption         *internal.BrowseOption         `group:"Browse Options"`
}

type ShowOption

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

Jump to

Keyboard shortcuts

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