mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 16:53:36 +05:00
refactor: move types to core
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ from utils.sys_utils import (
|
|||||||
cmd_sysctl_service,
|
cmd_sysctl_service,
|
||||||
parse_packages_from_file,
|
parse_packages_from_file,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
def install_crowsnest() -> None:
|
def install_crowsnest() -> None:
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ from core.submodules.simple_config_parser.src.simple_config_parser.simple_config
|
|||||||
from utils.common import get_install_status
|
from utils.common import get_install_status
|
||||||
from utils.input_utils import get_confirm, get_number_input, get_string_input
|
from utils.input_utils import get_confirm, get_number_input, get_string_input
|
||||||
from utils.sys_utils import cmd_sysctl_service
|
from utils.sys_utils import cmd_sysctl_service
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
def get_klipper_status() -> ComponentStatus:
|
def get_klipper_status() -> ComponentStatus:
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ from utils.sys_utils import (
|
|||||||
install_python_requirements,
|
install_python_requirements,
|
||||||
remove_service_file,
|
remove_service_file,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
def install_klipperscreen() -> None:
|
def install_klipperscreen() -> None:
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ from utils.sys_utils import (
|
|||||||
install_python_requirements,
|
install_python_requirements,
|
||||||
remove_service_file,
|
remove_service_file,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
def install_mobileraker() -> None:
|
def install_mobileraker() -> None:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ from utils.common import get_install_status
|
|||||||
from utils.sys_utils import (
|
from utils.sys_utils import (
|
||||||
get_ipv4_addr,
|
get_ipv4_addr,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
def get_moonraker_status() -> ComponentStatus:
|
def get_moonraker_status() -> ComponentStatus:
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ from utils.sys_utils import (
|
|||||||
install_python_requirements,
|
install_python_requirements,
|
||||||
parse_packages_from_file,
|
parse_packages_from_file,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
def get_octoeverywhere_status() -> ComponentStatus:
|
def get_octoeverywhere_status() -> ComponentStatus:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ from utils.git_utils import (
|
|||||||
get_latest_tag,
|
get_latest_tag,
|
||||||
get_latest_unstable_tag,
|
get_latest_unstable_tag,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
def get_client_status(
|
def get_client_status(
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ from core.menus.remove_menu import RemoveMenu
|
|||||||
from core.menus.settings_menu import SettingsMenu
|
from core.menus.settings_menu import SettingsMenu
|
||||||
from core.menus.update_menu import UpdateMenu
|
from core.menus.update_menu import UpdateMenu
|
||||||
from extensions.extensions_menu import ExtensionsMenu
|
from extensions.extensions_menu import ExtensionsMenu
|
||||||
from utils.types import ComponentStatus, StatusMap, StatusText
|
from core.types import ComponentStatus, StatusMap, StatusText
|
||||||
|
|
||||||
|
|
||||||
# noinspection PyUnusedLocal
|
# noinspection PyUnusedLocal
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ from utils.sys_utils import (
|
|||||||
update_system_package_lists,
|
update_system_package_lists,
|
||||||
upgrade_system_packages,
|
upgrade_system_packages,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus
|
from core.types import ComponentStatus
|
||||||
|
|
||||||
|
|
||||||
# noinspection PyUnusedLocal
|
# noinspection PyUnusedLocal
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ from core.constants import (
|
|||||||
from core.instance_manager.base_instance import BaseInstance
|
from core.instance_manager.base_instance import BaseInstance
|
||||||
from core.instance_manager.instance_manager import InstanceManager
|
from core.instance_manager.instance_manager import InstanceManager
|
||||||
from core.logger import DialogType, Logger
|
from core.logger import DialogType, Logger
|
||||||
|
from core.types import ComponentStatus, StatusCode
|
||||||
from utils import GLOBAL_DEPS, PRINTER_CFG_BACKUP_DIR
|
from utils import GLOBAL_DEPS, PRINTER_CFG_BACKUP_DIR
|
||||||
from utils.git_utils import get_local_commit, get_remote_commit, get_repo_name
|
from utils.git_utils import get_local_commit, get_remote_commit, get_repo_name
|
||||||
from utils.sys_utils import (
|
from utils.sys_utils import (
|
||||||
@@ -28,7 +29,6 @@ from utils.sys_utils import (
|
|||||||
install_system_packages,
|
install_system_packages,
|
||||||
update_system_package_lists,
|
update_system_package_lists,
|
||||||
)
|
)
|
||||||
from utils.types import ComponentStatus, StatusCode
|
|
||||||
|
|
||||||
|
|
||||||
def convert_camelcase_to_kebabcase(name: str) -> str:
|
def convert_camelcase_to_kebabcase(name: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user