Jean28518 / linux-assistant

A daily linux helper with powerful integrated search, routines checks and administrative tasks. The Project is built with flutter and python.
https://www.linux-assistant.org
GNU General Public License v3.0
91 stars 12 forks source link

Port python scripts to Dart #148

Closed Nati0ns closed 1 year ago

Nati0ns commented 1 year ago

The goal is to get rid of the python scripts and mirror all of their functionality in the main program. This makes it easier to handle errors in a consistent manner, gives us more control over external command calls and the option to replace them with existing Dart functions where possible. This may increase general performance as well.

In the long run the new classes in lib/linux should contain most of the functionality that exist in the Linux service class at the moment. This class is massive and should be downsized. The goal is, that the classes in this library should contain the base functionality for retrieving/writing various data from or to the system. The more complex stuff, for example when a function has to do multiple of these basic operations to achieve a result, it should be placed in the Linux service class.