zaquestion / lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
https://zaquestion.github.io/lab
Creative Commons Zero v1.0 Universal
1.1k stars 103 forks source link

util: print command flags enabled when on --debug #815

Closed bmeneg closed 2 years ago

bmeneg commented 2 years ago

Default command flag values can be overriden by setting it on lab's configuration file and since multiple configuration files are allowed sometimes the mix of flags can be quite confusing. To help with it this patch adds the print of all enabled flags when the user calls a command with --debug enabled (the 'debug' flag itself is ignored though).

Signed-off-by: Bruno Meneguele bmeneg@redhat.com

codecov[bot] commented 2 years ago

Codecov Report

Merging #815 (40a901d) into master (0a1ff39) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #815      +/-   ##
==========================================
+ Coverage   56.24%   56.30%   +0.06%     
==========================================
  Files          77       77              
  Lines        5752     5760       +8     
==========================================
+ Hits         3235     3243       +8     
  Misses       2227     2227              
  Partials      290      290              
Impacted Files Coverage Δ
cmd/util.go 74.64% <100.00%> (+0.58%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0a1ff39...40a901d. Read the comment docs.