Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdTrackedTimesAdd = cli.Command{ Name: "add", Usage: "Track spent time on an issue", UsageText: "tea times add <issue> <duration>", Description: `Track spent time on an issue Example: tea times add 1 1h25m `, Action: runTrackedTimesAdd, Flags: flags.LoginRepoFlags, }
CmdTrackedTimesAdd represents a sub command of times to add time to an issue
View Source
var CmdTrackedTimesDelete = cli.Command{ Name: "delete", Aliases: []string{"rm"}, Usage: "Delete a single tracked time on an issue", UsageText: "tea times delete <issue> <time ID>", Action: runTrackedTimesDelete, Flags: flags.LoginRepoFlags, }
CmdTrackedTimesDelete is a sub command of CmdTrackedTimes, and removes time from an issue
View Source
var CmdTrackedTimesList = cli.Command{ Name: "ls", Aliases: []string{"list"}, Action: RunTimesList, Usage: "Operate on tracked times of a repository's issues & pulls", Description: `Operate on tracked times of a repository's issues & pulls. Depending on your permissions on the repository, only your own tracked times might be listed.`, ArgsUsage: "[username | #issue]", Flags: append([]cli.Flag{ &cli.StringFlag{ Name: "from", Aliases: []string{"f"}, Usage: "Show only times tracked after this date", }, &cli.StringFlag{ Name: "until", Aliases: []string{"u"}, Usage: "Show only times tracked before this date", }, &cli.BoolFlag{ Name: "total", Aliases: []string{"t"}, Usage: "Print the total duration at the end", }, }, flags.AllDefaultFlags...), }
CmdTrackedTimesList represents a sub command of times to list them
View Source
var CmdTrackedTimesReset = cli.Command{ Name: "reset", Usage: "Reset tracked time on an issue", UsageText: "tea times reset <issue>", Action: runTrackedTimesReset, Flags: flags.LoginRepoFlags, }
CmdTrackedTimesReset is a subcommand of CmdTrackedTimes, and clears all tracked times on an issue.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.