Replies: 3 comments 2 replies
-
I welcome this change. I did a similar split with If you want I can take this on, I don't mind and I have a pretty clear idea of how we could cut the files up into individual ones. |
Beta Was this translation helpful? Give feedback.
-
Ahh sorry I didn't even realize that there was a discussion going on about this already before raising #1019 |
Beta Was this translation helpful? Give feedback.
-
This has been done, the split now lives under |
Beta Was this translation helpful? Give feedback.
-
The file is around the 1100 lines big, and there are some modules/classes which should go there but are too big and start to crop everywhere else (i'm thinking in
GlobalMenu
, and other new specialized menus in the scripts andoutput_config
)I think time has come to split it and replace with a directory. Not tomorrow, but close by.
In this plan, what I have a clear vision is that we should have to directories with UI related code, and I think there will be consensus around it
menu
) with abstract widget definitions. ( TerminalMenu, Menu, GeneralMenu, ListManager, TextInput, ..., even MiniCurses) Content in there should be as application independent as possibleuser_interaction.py
,configuration.py
and, at leastGlobalMenu
) which would host the application dependant UI routines.The trouble starts with how to organize the content in this directory. I don't have a clear guideline, and tbh, not even a firm idea of it. This is the reason i'm starting this discussion.
Ease of migration is a condition "sine qua non". A prerequisite is that users accesing via
import archinstall
shouldn't notice it. As the rest of the modules goes, i've identified following modules which will need explicit changesFor sure there are obsolete modules we could prune (f.i. MiniCurses is, according to my data, not used anymore in the basis Archinstall code) but after the
generic_select
fracas (wasn't used in the general code but user routines still do use it), i prefer to be conservative in this regard.Beta Was this translation helpful? Give feedback.
All reactions