profclems / glab

The GitLab CLI tool. Archived: now officially adopted by GitLab as the official CLI tool and maintained at https://gitlab.com/gitlab-org/cli. See https://github.com/profclems/glab/issues/983
https://glab.readthedocs.io/
MIT License
2.08k stars 163 forks source link

Handle time tracking #969

Open ThaDaVos opened 2 years ago

ThaDaVos commented 2 years ago

Describe the feature or problem you'd like to solve

It would be amazing if one could also handle time tracking from command line, for example:

Propose a Solution

Maybe someone can submit a PR - I am not experienced enough with Go to even try it...

but something like:

glab time view #shows total time
glab time view --today #show total time today
glab time view --yesterday #show total time yesterday

glab time view {PROJECT} {ISSUE} #shows time for specific issue (you need PROJECT also here)
glab time view {PROJECT} {ISSUE} --today #show time for specific issue today
glab time view {PROJECT} {ISSUE}--yesterday #show time for specific issue yesterday

glab time view {GROUP} #shows time for specific group
glab time view {GROUP} --today #show time for specific group today
glab time view {GROUP} --yesterday #show time for specific group yesterday

glab time quota daily {?h ?m ?s} # Sets quota for day (just local)
glab time quota monday {?h ?m ?s} # Sets quota for monday only (just local)
glab time quota weekly {?h ?m ?s} # Sets weekly quota (just local)

Additional context

clemsbot commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.

ThaDaVos commented 2 years ago

Anyone?

clemsbot commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.