Closed yarikoptic closed 1 month ago
When we dont get measurements, use red.
duct -p Z_ --s-i 0.1 --r-i 1 --clobber ls
When we do get measurements, use green
duct -p Z_ --s-i 0.1 --r-i 1 --clobber sleep 1
Next up, need to add lots of tests.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.49%. Comparing base (
7f5a3ae
) to head (58a1ff1
). Report is 42 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@yarikoptic If the user provides an invalid value, we shouldnt be returning a tb to them, so I added [No user-facing tb even with invalid summary-format](https://github.com/con/duct/pull/183/commits/264ae8b7d57ee4f9da6ddef28edf5a8cb98e2927)
@yarikoptic If the user provides an invalid value, we shouldnt be returning a tb to them
why?
Let's proceed. thank you @asmacdo !
In principle works, here is current outputs
[EDIT asmacdo] I've made some tweaks to how the individual conversion flags work. The biggest user-interface difference is that I've made colors off by default.
duct --colors sleep 2
duct --colors echo 1
duct --colors false
And of course the user can specify --summary-format and use the custom conversion flags (documented in --help)
duct --colors --summary-format "JUST EXIT CODE: {exit_code\!E}" false