Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdLabelCreate = cli.Command{ Name: "create", Aliases: []string{"c"}, Usage: "Create a label", Description: `Create a label`, Action: runLabelCreate, Flags: []cli.Flag{ &cli.StringFlag{ Name: "name", Usage: "label name", }, &cli.StringFlag{ Name: "color", Usage: "label color value", }, &cli.StringFlag{ Name: "description", Usage: "label description", }, &cli.StringFlag{ Name: "file", Usage: "indicate a label file", }, }, }
CmdLabelCreate represents a sub command of labels to create label.
View Source
var CmdLabelDelete = cli.Command{ Name: "delete", Aliases: []string{"rm"}, Usage: "Delete a label", Description: `Delete a label`, Action: runLabelDelete, Flags: []cli.Flag{ &cli.IntFlag{ Name: "id", Usage: "label id", }, }, }
CmdLabelDelete represents a sub command of labels to delete label.
View Source
var CmdLabelUpdate = cli.Command{
Name: "update",
Usage: "Update a label",
Description: `Update a label`,
Action: runLabelUpdate,
Flags: []cli.Flag{
&cli.IntFlag{
Name: "id",
Usage: "label id",
},
&cli.StringFlag{
Name: "name",
Usage: "label name",
},
&cli.StringFlag{
Name: "color",
Usage: "label color value",
},
&cli.StringFlag{
Name: "description",
Usage: "label description",
},
},
}
CmdLabelUpdate represents a sub command of labels to update label.
View Source
var CmdLabelsList = cli.Command{ Name: "list", Aliases: []string{"ls"}, Usage: "List labels", Description: "List labels", Action: RunLabelsList, Flags: append([]cli.Flag{ &cli.BoolFlag{ Name: "save", Aliases: []string{"s"}, Usage: "Save all the labels as a file", }, &flags.PaginationPageFlag, &flags.PaginationLimitFlag, }, flags.AllDefaultFlags...), }
CmdLabelsList represents a sub command of labels to list labels
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.