Improve tea time #319

Merged
lunny merged 6 commits from noerw/tea:better-times-are-coming into master 2020-12-23 04:58:36 +00:00
Showing only changes of commit 50c6006767 - Show all commits

View File

@ -51,7 +51,7 @@ Depending on your permissions on the repository, only your own tracked times mig
&cli.BoolFlag{
Name: "mine",
Aliases: []string{"m"},
Usage: "Show Print the total duration at the end",
Usage: "Show all times tracked by you across all repositories (overrides command arguments)",
noerw marked this conversation as resolved Outdated
Outdated
Review

cp issue ;)

cp issue ;)
},
&cli.StringFlag{
Name: "fields",
@ -95,6 +95,7 @@ func RunTimesList(cmd *cli.Context) error {
} else if user == "" {
// get all tracked times on the repo
times, _, err = client.ListRepoTrackedTimes(ctx.Owner, ctx.Repo, opts)
noerw marked this conversation as resolved
Review

add fields = []string{"created", "repo", "issue", "user", "duration"} ?

add `fields = []string{"created", "repo", "issue", "user", "duration"}` ?
fields = []string{"created", "issue", "user", "duration"}
} else if strings.HasPrefix(user, "#") {
// get all tracked times on the specified issue
issue, err := utils.ArgToIndex(user)