psss / did

What did you do last week, month, year?
https://did.readthedocs.io/
GNU General Public License v2.0
247 stars 105 forks source link

Getting all the switches used by default #217

Closed kkaarreell closed 4 years ago

kkaarreell commented 4 years ago

When running the git like "did last" having multiple services configured, I would like to see the an equivalent command line with all the service specific switches included. It would let me to easily fine tune the parameters instead of having to reconstruct it on my own. The output doesn't have to be covered by and extra switch, I would be fine with seeing the output e.g. in the verboseverbose (vv) or debug log. Or it could be some git config subcommand, all are really care about are the switches on by default.

Example: $ did last having and equivalent $ did --bz --jira --nitrate --wiki last

psss commented 4 years ago

I see. Makes sense and could be useful. What about including this in the info output?

> DEBUG=1 did
[INFO] Inspecting config file '/home/psss/.did/config'.
[INFO] Default command line: did --bz --tools --tests --rpms --ci --github --gitlab --pagure
Status report for the week 02 (2020-01-06 to 2020-01-12).
...

The debug output is a little bit too verbose for this.

kkaarreell commented 4 years ago

INFO would be great. Thank you.