Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : report a date #46

Closed
lud opened this issue Dec 30, 2019 · 6 comments
Closed

Feature request : report a date #46

lud opened this issue Dec 30, 2019 · 6 comments

Comments

@lud
Copy link

lud commented Dec 30, 2019

So basically I have this bash script : utt report --to=$1 --from=$1 that helps me to fill reports of time tracking for my boss.

It would be cool if we could do utt report --date XXXXXX instead.

Also I have to do this for the whole month, so it would be even cooler if utt would print a whole month report (with --from and --to set at month boundaries) but displaying time per-day/per-project instead of only per-day (with a --per-project option for instance).

What do you think of this ?

@larose
Copy link
Owner

larose commented Dec 30, 2019

Hi @lud,

It would be cool if we could do utt report --date XXXXXX instead.

I'm not sure I understand your request. How is it different than utt report 2019-12-30?

Also I have to do this for the whole month, so it would be even cooler if utt would print a whole month report (with --from and --to set at month boundaries) but displaying time per-day/per-project instead of only per-day (with a --per-project option for instance).

I'd rather this to be scripted outside of utt. I'm worried that utt will have too many features and become bloated. I wanted for a while to create a plugin system where people can extend utt, but I have other priorities at the moment.

@lud
Copy link
Author

lud commented Dec 30, 2019

Gosh I totally missed the date argument for utt report.

So forget about this, sorry :)

Plugins vs bloat is a good idea, maybe you could just describe how to import utt and use it as a library to get the timesheet content as data, so anyone could start to exploit the data. Integration of plugins as utt command would then just be implementing an interface and that could be done later on.

@lud lud closed this as completed Dec 30, 2019
@ukrutt
Copy link
Contributor

ukrutt commented Dec 31, 2019

Also I have to do this for the whole month, so it would be even cooler if utt would print a whole month report (with --from and --to set at month boundaries) but displaying time per-day/per-project instead of only per-day (with a --per-project option for instance).

There is currently a feature that gets you close to what you want -- there are --month, --project, --per-day switches.

% utt report --month nov --project <customer> --per-day

(I use "project" to indicate customer.)

Does this do what you'd like?

@lud
Copy link
Author

lud commented Dec 31, 2019

not really because I want all projects details for each day of the month. But I'm fine if I have to call the report command for each day, it is not that long.

@larose
Copy link
Owner

larose commented Jan 1, 2020

@lud, I added support for plugins: https://github.com/larose/utt/blob/master/docs/PLUGINS.md . The API is not stable yet, but it's a first step.

@lud
Copy link
Author

lud commented Jan 2, 2020

Great ! Thank you very much :) It looks like I will do some python this month, if I manage to upgrade to python 3 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants