clan-cli: clan_cli.custom_logger -> clan_lib.custom_logger

This commit is contained in:
lassulus
2025-05-20 15:08:02 +02:00
parent 00a439999b
commit ec19ef1ec5
11 changed files with 10 additions and 11 deletions

View File

@@ -7,8 +7,8 @@ import os
from dataclasses import dataclass
from pathlib import Path
from clan_cli.custom_logger import setup_logging
from clan_lib.api import API, ErrorDataClass, SuccessDataClass
from clan_lib.custom_logger import setup_logging
from clan_app.api.file_gtk import open_file
from clan_app.deps.webview.webview import Size, SizeHint, Webview

View File

@@ -5,7 +5,7 @@ import subprocess
from pathlib import Path
import pytest
from clan_cli.custom_logger import setup_logging
from clan_lib.custom_logger import setup_logging
from clan_lib.nix import nix_shell
pytest_plugins = [

View File

@@ -3,7 +3,7 @@ import os
import shlex
from clan_app import main
from clan_cli.custom_logger import get_callers
from clan_lib.custom_logger import get_callers
log = logging.getLogger(__name__)

View File

@@ -14,6 +14,7 @@ from .clan import show, update
# API endpoints that are not used in the cli.
__all__ = ["directory", "disk", "mdns_discovery", "modules", "update"]
from clan_lib.custom_logger import setup_logging
from clan_lib.dirs import get_clan_flake_toplevel_or_env
from clan_lib.errors import ClanError
from clan_lib.flake import Flake
@@ -26,7 +27,6 @@ from . import (
state,
vms,
)
from .custom_logger import setup_logging
from .facts import cli as facts
from .flash import cli as flash_cli
from .hyperlink import help_hyperlink

View File

@@ -3,7 +3,7 @@ import logging
import shlex
from clan_cli import create_parser
from clan_cli.custom_logger import print_trace
from clan_lib.custom_logger import print_trace
log = logging.getLogger(__name__)

View File

@@ -18,10 +18,9 @@ from enum import Enum
from pathlib import Path
from typing import IO, Any
from clan_cli.custom_logger import print_trace
from clan_lib.async_run import get_async_ctx, is_async_cancelled
from clan_lib.colors import Color
from clan_lib.custom_logger import print_trace
from clan_lib.errors import ClanCmdError, ClanError, CmdOut, indent_command
cmdlog = logging.getLogger(__name__)

View File

@@ -1,7 +1,7 @@
import logging
import pytest
from clan_cli.custom_logger import setup_logging
from clan_lib.custom_logger import setup_logging
# Every fixture registered here will be available in clan_cli and clan_lib
pytest_plugins = [

View File

@@ -10,7 +10,7 @@ from clan_vm_manager.singletons.toast import InfoToast, ToastOverlay
gi.require_version("Gtk", "4.0")
gi.require_version("Adw", "1")
from clan_cli.custom_logger import setup_logging
from clan_lib.custom_logger import setup_logging
from gi.repository import Adw, Gdk, Gio, Gtk
from clan_vm_manager.components.interfaces import ClanConfig

View File

@@ -4,7 +4,7 @@ import sys
from pathlib import Path
import pytest
from clan_cli.custom_logger import setup_logging
from clan_lib.custom_logger import setup_logging
from clan_lib.nix import nix_shell
sys.path.append(str(Path(__file__).parent / "helpers"))

View File

@@ -2,7 +2,7 @@ import logging
import os
import shlex
from clan_cli.custom_logger import get_callers
from clan_lib.custom_logger import get_callers
from clan_vm_manager import main
log = logging.getLogger(__name__)