-
Notifications
You must be signed in to change notification settings - Fork 2
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
colorized & arg for hyfetch #2
base: master
Are you sure you want to change the base?
Conversation
- the colors.py module may need to be move to src/tools - now using delicate qwqfetch can show color correct, but failed when combined with hyfetch's colors. - more robust distro detector
- Fix procedure to produce colorized text with asc in (1 - Hardcoded bold text
- keep indent at zero when get_result() - color blocks implemented using two for-loop
- remove debug output from colors.py note that qwqfetch doesn't have debug opt by now
- minor changes to get_color_blocks()
Thanks for the pr! This repo is temporarily abandoned anyway, needing mass code refactor, but I've got a lot of things to do now.In fact, the author of hyfetch is not very optimistic about these codes. I also did not consider many things when writing these codes, such as dynamically calling the C language library. I haven't looked at your code carefully (and actually I kind of forget what shit I wrote). But I can spare some time to work on this project too if you want to contribute. Maybe within this weekend. |
reuse get_result, then concat in get_ascres see line 70
ignore egg-info
chore: format
Just set an
asc
arg in get_result() for pass asciiart produced by hyfetch.As I have no idea about how python module structured, newly added
colors.py
file may need to move to tools/ folder.Mostly use f-strings to speed up string production, however
get_color_blocks
performance is poor due to use of for-loop. More pythonic candy should apply for optimize.