Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CmdMilestoneAddIssue = cli.Command{ Name: "add", Aliases: []string{"a"}, Usage: "Add an issue/pull to an milestone", Description: "Add an issue/pull to an milestone", ArgsUsage: "<milestone name> <issue/pull index>", Action: runMilestoneIssueAdd, Flags: flags.AllDefaultFlags, }
CmdMilestoneAddIssue represents a sub command of milestone issues to add an issue/pull to an milestone
var CmdMilestoneRemoveIssue = cli.Command{ Name: "remove", Aliases: []string{"r"}, Usage: "Remove an issue/pull to an milestone", Description: "Remove an issue/pull to an milestone", ArgsUsage: "<milestone name> <issue/pull index>", Action: runMilestoneIssueRemove, Flags: flags.AllDefaultFlags, }
CmdMilestoneRemoveIssue represents a sub command of milestones to remove an issue/pull from an milestone
var CmdMilestonesClose = cli.Command{ Name: "close", Usage: "Change state of an milestone to 'closed'", Description: `Change state of an milestone to 'closed'`, ArgsUsage: "<milestone name>", Action: func(ctx *cli.Context) error { if ctx.Bool("force") { return deleteMilestone(ctx) } return editMilestoneStatus(ctx, true) }, Flags: append([]cli.Flag{ &cli.BoolFlag{ Name: "force", Aliases: []string{"f"}, Usage: "delete milestone", }, }, flags.AllDefaultFlags...), }
CmdMilestonesClose represents a sub command of milestones to close an milestone
var CmdMilestonesCreate = cli.Command{ Name: "create", Aliases: []string{"c"}, Usage: "Create an milestone on repository", Description: `Create an milestone on repository`, Action: runMilestonesCreate, Flags: append([]cli.Flag{ &cli.StringFlag{ Name: "title", Aliases: []string{"t"}, Usage: "milestone title to create", }, &cli.StringFlag{ Name: "description", Aliases: []string{"d"}, Usage: "milestone description to create", }, &cli.StringFlag{ Name: "deadline", Aliases: []string{"expires", "x"}, Usage: "set milestone deadline (default is no due date)", }, &cli.StringFlag{ Name: "state", Usage: "set milestone state (default is open)", DefaultText: "open", }, }, flags.AllDefaultFlags...), }
CmdMilestonesCreate represents a sub command of milestones to create milestone
var CmdMilestonesDelete = cli.Command{ Name: "delete", Aliases: []string{"rm"}, Usage: "delete a milestone", Description: "delete a milestone", ArgsUsage: "<milestone name>", Action: deleteMilestone, Flags: flags.AllDefaultFlags, }
CmdMilestonesDelete represents a sub command of milestones to delete an milestone
var CmdMilestonesIssues = cli.Command{ Name: "issues", Aliases: []string{"i"}, Usage: "manage issue/pull of an milestone", Description: "manage issue/pull of an milestone", ArgsUsage: "<milestone name>", Action: runMilestoneIssueList, Subcommands: []*cli.Command{ &CmdMilestoneAddIssue, &CmdMilestoneRemoveIssue, }, Flags: append([]cli.Flag{ &cli.StringFlag{ Name: "state", Usage: "Filter by issue state (all|open|closed)", DefaultText: "open", }, &cli.StringFlag{ Name: "kind", Usage: "Filter by kind (issue|pull)", }, &flags.PaginationPageFlag, &flags.PaginationLimitFlag, flags.FieldsFlag(print.IssueFields, []string{ "index", "kind", "title", "state", "updated", "labels", }), }, flags.AllDefaultFlags...), }
CmdMilestonesIssues represents a sub command of milestones to manage issue/pull of an milestone
var CmdMilestonesList = cli.Command{ Name: "list", Aliases: []string{"ls"}, Usage: "List milestones of the repository", Description: `List milestones of the repository`, Action: RunMilestonesList, Flags: append([]cli.Flag{ &cli.StringFlag{ Name: "state", Usage: "Filter by milestone state (all|open|closed)", DefaultText: "open", }, &flags.PaginationPageFlag, &flags.PaginationLimitFlag, }, flags.AllDefaultFlags...), }
CmdMilestonesList represents a sub command of milestones to list milestones
var CmdMilestonesReopen = cli.Command{ Name: "reopen", Aliases: []string{"open"}, Usage: "Change state of an milestone to 'open'", Description: `Change state of an milestone to 'open'`, ArgsUsage: "<milestone name>", Action: func(ctx *cli.Context) error { return editMilestoneStatus(ctx, false) }, Flags: flags.AllDefaultFlags, }
CmdMilestonesReopen represents a sub command of milestones to open an milestone
Functions ¶
func RunMilestonesList ¶
func RunMilestonesList(cmd *cli.Context) error
RunMilestonesList list milestones
Types ¶
This section is empty.