Nip and tuck; tidy and sort

This commit is contained in:
jonct 2024-07-15 04:36:44 -04:00
parent 3a0fb92ef0
commit b52e5a4cba
No known key found for this signature in database
9 changed files with 14 additions and 12 deletions

View File

@ -9,7 +9,9 @@ import re
from inspect import cleandoc
from pathlib import Path, PurePath
from textwrap import dedent
from donor.jlmkr import DISCLAIMER
from cli import DISCLAIMER
from paths import COMMAND_NAME, JAILS_DIR_PATH, SCRIPT_NAME, SCRIPT_DIR_PATH
from utils.chroot import Chroot
from utils.config_parser import KeyValueParser, DEFAULT_CONFIG
from utils.console import YELLOW, BOLD, NORMAL, eprint
@ -18,7 +20,6 @@ from utils.files import stat_chmod, get_mount_point
from utils.dataset import check_jail_name_valid, check_jail_name_available
from utils.dataset import get_jail_config_path, get_jail_rootfs_path
from utils.dataset import get_jail_path, get_zfs_dataset, create_zfs_dataset, cleanup
from utils.paths import COMMAND_NAME, JAILS_DIR_PATH, SCRIPT_NAME, SCRIPT_DIR_PATH
def create_jail(**kwargs):

View File

@ -6,9 +6,9 @@ import os
import subprocess
from utils.console import eprint
from utils.editor import get_text_editor
from utils.dataset import check_jail_name_valid, check_jail_name_available
from utils.dataset import get_jail_config_path, jail_is_running
from utils.editor import get_text_editor
def edit_jail(jail_name):

View File

@ -6,8 +6,9 @@ import json
import subprocess
from collections import defaultdict
from utils.console import NORMAL, UNDERLINE
from utils.config_parser import parse_config_file
from utils.console import NORMAL, UNDERLINE
from utils.dataset import get_all_jail_names, get_jail_config_path, get_jail_rootfs_path, parse_os_release

View File

@ -4,7 +4,7 @@
import subprocess
from utils.paths import SHORTNAME
from paths import SHORTNAME
def log_jail(jail_name, args):

View File

@ -3,9 +3,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
from actions.stop import stop_jail
from utils.console import eprint
from utils.dataset import check_jail_name_valid, check_jail_name_available
from utils.dataset import get_jail_path, cleanup
from utils.console import eprint
def remove_jail(jail_name):

View File

@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: LGPL-3.0-only
import subprocess
import time

View File

@ -9,13 +9,14 @@ import tempfile
from pathlib import Path
from textwrap import dedent
from paths import SHORTNAME, JAIL_ROOTFS_NAME
from utils.config_parser import parse_config_file
from utils.console import eprint
from utils.dataset import get_jail_config_path, get_jail_rootfs_path
from utils.dataset import get_jail_path, jail_is_running
from utils.files import stat_chmod
from utils.gpu import passthrough_intel, passthrough_nvidia
from utils.dataset import get_jail_path, jail_is_running
from utils.dataset import get_jail_config_path, get_jail_rootfs_path
from utils.paths import SHORTNAME, JAIL_ROOTFS_NAME
def start_jail(jail_name):

View File

@ -3,8 +3,8 @@
# SPDX-License-Identifier: LGPL-3.0-only
from actions.start import start_jail
from utils.dataset import get_all_jail_names, get_jail_config_path
from utils.config_parser import parse_config_file
from utils.dataset import get_all_jail_names, get_jail_config_path
def startup_jails():

View File

@ -4,7 +4,7 @@
import subprocess
from utils.paths import SHORTNAME
from paths import SHORTNAME
def status_jail(jail_name, args):