clan-cli: clan_cli.colors -> clan_lib.colors
This commit is contained in:
@@ -4,7 +4,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from clan_cli.colors import AnsiColor, RgbColor, color_by_tuple
|
from clan_lib.colors import AnsiColor, RgbColor, color_by_tuple
|
||||||
|
|
||||||
# https://no-color.org
|
# https://no-color.org
|
||||||
DISABLE_COLOR = not sys.stderr.isatty() or os.environ.get("NO_COLOR", "") != ""
|
DISABLE_COLOR = not sys.stderr.isatty() or os.environ.get("NO_COLOR", "") != ""
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ from contextlib import ExitStack
|
|||||||
|
|
||||||
from clan_lib.api import API
|
from clan_lib.api import API
|
||||||
from clan_lib.cmd import Log, MsgColor, RunOpts, run
|
from clan_lib.cmd import Log, MsgColor, RunOpts, run
|
||||||
|
from clan_lib.colors import AnsiColor
|
||||||
from clan_lib.errors import ClanError
|
from clan_lib.errors import ClanError
|
||||||
from clan_lib.nix import nix_command, nix_config, nix_metadata
|
from clan_lib.nix import nix_command, nix_config, nix_metadata
|
||||||
|
|
||||||
from clan_cli.async_run import AsyncContext, AsyncOpts, AsyncRuntime, is_async_cancelled
|
from clan_cli.async_run import AsyncContext, AsyncOpts, AsyncRuntime, is_async_cancelled
|
||||||
from clan_cli.colors import AnsiColor
|
|
||||||
from clan_cli.completions import (
|
from clan_cli.completions import (
|
||||||
add_dynamic_completer,
|
add_dynamic_completer,
|
||||||
complete_machines,
|
complete_machines,
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ from tempfile import TemporaryDirectory
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from clan_lib.cmd import CmdOut, RunOpts, run
|
from clan_lib.cmd import CmdOut, RunOpts, run
|
||||||
|
from clan_lib.colors import AnsiColor
|
||||||
from clan_lib.errors import ClanError
|
from clan_lib.errors import ClanError
|
||||||
from clan_lib.nix import nix_shell
|
from clan_lib.nix import nix_shell
|
||||||
|
|
||||||
from clan_cli.colors import AnsiColor
|
|
||||||
from clan_cli.ssh.host_key import HostKeyCheck
|
from clan_cli.ssh.host_key import HostKeyCheck
|
||||||
|
|
||||||
cmdlog = logging.getLogger(__name__)
|
cmdlog = logging.getLogger(__name__)
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ from pathlib import Path
|
|||||||
from typing import IO, Any
|
from typing import IO, Any
|
||||||
|
|
||||||
from clan_cli.async_run import get_async_ctx, is_async_cancelled
|
from clan_cli.async_run import get_async_ctx, is_async_cancelled
|
||||||
from clan_cli.colors import Color
|
|
||||||
from clan_cli.custom_logger import print_trace
|
from clan_cli.custom_logger import print_trace
|
||||||
|
|
||||||
|
from clan_lib.colors import Color
|
||||||
from clan_lib.errors import ClanCmdError, ClanError, CmdOut, indent_command
|
from clan_lib.errors import ClanCmdError, ClanError, CmdOut, indent_command
|
||||||
|
|
||||||
cmdlog = logging.getLogger(__name__)
|
cmdlog = logging.getLogger(__name__)
|
||||||
|
|||||||
Reference in New Issue
Block a user