issue

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 12 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:"The template 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 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 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."`
	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 Option

type Option struct {
	CreateUpdateOption *CreateUpdateOption `group:"Create, Update Options"`
	ListOption         *ListOption         `group:"List Options"`
	ShowOption         *ShowOption         `group:"Show 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