Closed laixintao closed 2 years ago
I added a fake color render COLOR_DISABLED
to render plain text without escape code.
If it is ok for you, then I will complete this PR with more docs and test cases. @laike9m
I don't have permission to edit doc in wiki so i put the doc in this description, you can copy it to wiki.
and I don't mind if you squash merge, the commit log is a bit messy due to fixing the ci. @laike9m
Let me know if I need to review
@laike9m I applied you suggestions already, please review again and leave some comments if there is anything more need to be improved.
ready for review again, you can merge #68 first
refactored some import pdir
move them to top if necessary.
LGTM, thanks again!
You can disable color output by setting
colorful-output = False
in~/.pdir2config
now.Example:
True
means always use color,False
means always disable color, andauto
means using color output when stdout is a TTY, otherwise not.You can also disable colors by environment variable
export PDIR2_NOCOLOR=1
. The environment has higher priority than the config file.close #65