mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-12-25 18:42:59 +00:00
move utils package into top level
This commit is contained in:
parent
1f1f3b27b2
commit
717010d9b4
15 changed files with 17 additions and 22 deletions
|
@ -4,7 +4,7 @@ import os
|
|||
import subprocess
|
||||
|
||||
# parent
|
||||
from ...config import LoadedConfig
|
||||
from .config import LoadedConfig
|
||||
|
||||
|
||||
def _update_kwargs(**kwargs):
|
|
@ -3,8 +3,8 @@ import os
|
|||
|
||||
from .executable import Executable
|
||||
|
||||
from ..._constants import CONF_DIRECTORY_NAME
|
||||
from ...config import LoadedConfig
|
||||
from ._constants import CONF_DIRECTORY_NAME
|
||||
from .config import LoadedConfig
|
||||
|
||||
|
||||
class Project:
|
|
@ -4,11 +4,9 @@ import os
|
|||
import subprocess
|
||||
|
||||
# local
|
||||
from ._constants import IMAGES_DIRECTORY_NAME, LOCAL_IMAGES_NAME, DEFAULT_IMAGE_NAME
|
||||
from .executable import Executable
|
||||
|
||||
# parent
|
||||
from ..._constants import IMAGES_DIRECTORY_NAME, LOCAL_IMAGES_NAME, DEFAULT_IMAGE_NAME
|
||||
|
||||
|
||||
def _prefix_path(prefix, path):
|
||||
if isinstance(path, str):
|
|
@ -4,7 +4,7 @@ import subprocess
|
|||
|
||||
# local
|
||||
from . import subcommands
|
||||
from .subcommands.utils.executable import Executable
|
||||
from .executable import Executable
|
||||
from .parser import Parser
|
||||
|
||||
|
||||
|
|
|
@ -2,11 +2,9 @@
|
|||
import logging
|
||||
import os
|
||||
|
||||
# local
|
||||
from .utils.project import Projects
|
||||
|
||||
# parent
|
||||
from ..parser import Parser
|
||||
from ..project import Projects
|
||||
|
||||
|
||||
class SubCommand:
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
# system
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
# local
|
||||
from ._subcommand import SubCommand
|
||||
from .utils.project import Projects
|
||||
from .utils.rootkit import Rootkit, prefix_path_mnt
|
||||
|
||||
# parent
|
||||
from .._constants import CONF_DIRECTORY_NAME
|
||||
from ..config import LoadedConfig
|
||||
from ..project import Projects
|
||||
from ..rootkit import Rootkit, prefix_path_mnt
|
||||
|
||||
|
||||
class ConfCopyCommand(SubCommand):
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# local
|
||||
from .utils.project import Projects
|
||||
from ._subcommand import ProjectCommand
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# local
|
||||
from ._subcommand import ServiceCommand
|
||||
from .utils.misc import are_you_sure
|
||||
from ..misc import are_you_sure
|
||||
|
||||
|
||||
class DownCommand(ServiceCommand):
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# local
|
||||
from .utils.project import Projects
|
||||
from ._subcommand import ProjectCommand
|
||||
|
||||
|
||||
|
|
|
@ -5,7 +5,9 @@ import yaml
|
|||
|
||||
# local
|
||||
from ._subcommand import ServiceCommand
|
||||
from .utils.project import Project, Projects
|
||||
|
||||
# parent
|
||||
from ..project import Project, Projects
|
||||
|
||||
|
||||
def _print_list(strings):
|
||||
|
|
|
@ -4,11 +4,11 @@ import subprocess
|
|||
|
||||
# local
|
||||
from ._subcommand import SubCommand
|
||||
from .utils.executable import Executable
|
||||
from .utils.misc import are_you_sure
|
||||
|
||||
# parent
|
||||
from ..config import LoadedConfig
|
||||
from ..executable import Executable
|
||||
from ..misc import are_you_sure
|
||||
|
||||
|
||||
def _find_net(net_name):
|
||||
|
|
|
@ -4,7 +4,6 @@ import os
|
|||
import shutil
|
||||
|
||||
# local
|
||||
from .utils.project import Projects
|
||||
from ._subcommand import ProjectCommand
|
||||
|
||||
# parent
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# local
|
||||
from ._subcommand import ServiceCommand
|
||||
from .utils.misc import are_you_sure
|
||||
|
||||
# parent
|
||||
from ..misc import are_you_sure
|
||||
|
||||
|
||||
class UpdateCommand(ServiceCommand):
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
# git keep
|
Loading…
Reference in a new issue