Open jcollins1983 opened 3 weeks ago
Looks like only the readthedocs
build is done, no other tests? 🤔
This'll be why
This'll be why
I'll do another targeted branch to fix this.
I haven't looked at the details here yet. General idea look fine.
This is what I'm thinking - there is probably a fair bit more we can/should do to improve. For example, tighten up typing to be more specific instead of many parameters/return values being strings. I don't want to get this improvement bogged down in trying to fix everything, but I don't want to shoot ourselves in the foot and complicate future improvements.
In any case, I'll get in and review this as is. And hopefully none of that is an issue.
This PR addresses Issue #177 and Issue #213.
I've done a similar thing to the switching module and put the new _ui.py module at the fixate level and have only exposed the public functions.
To avoid having 2 different sets of functions in
cmd_line.py
andui_gui_qt.py
I moved the (duplicated) logic out of the UI files into ui.py and kept the original behaviour, tests were updated to deal with this change.Also added the ability to have colour on
user_info_important
the line of!
defaults to red, which will hopefully be a bit more eye catching.Have tested each of the functions manually. But should try on a real script or 2 before this gets merged if it does.