mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-22 04:43:00 +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
|
import subprocess
|
||||||
|
|
||||||
# parent
|
# parent
|
||||||
from ...config import LoadedConfig
|
from .config import LoadedConfig
|
||||||
|
|
||||||
|
|
||||||
def _update_kwargs(**kwargs):
|
def _update_kwargs(**kwargs):
|
|
@ -3,8 +3,8 @@ import os
|
||||||
|
|
||||||
from .executable import Executable
|
from .executable import Executable
|
||||||
|
|
||||||
from ..._constants import CONF_DIRECTORY_NAME
|
from ._constants import CONF_DIRECTORY_NAME
|
||||||
from ...config import LoadedConfig
|
from .config import LoadedConfig
|
||||||
|
|
||||||
|
|
||||||
class Project:
|
class Project:
|
|
@ -4,11 +4,9 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# local
|
# local
|
||||||
|
from ._constants import IMAGES_DIRECTORY_NAME, LOCAL_IMAGES_NAME, DEFAULT_IMAGE_NAME
|
||||||
from .executable import Executable
|
from .executable import Executable
|
||||||
|
|
||||||
# parent
|
|
||||||
from ..._constants import IMAGES_DIRECTORY_NAME, LOCAL_IMAGES_NAME, DEFAULT_IMAGE_NAME
|
|
||||||
|
|
||||||
|
|
||||||
def _prefix_path(prefix, path):
|
def _prefix_path(prefix, path):
|
||||||
if isinstance(path, str):
|
if isinstance(path, str):
|
|
@ -4,7 +4,7 @@ import subprocess
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from . import subcommands
|
from . import subcommands
|
||||||
from .subcommands.utils.executable import Executable
|
from .executable import Executable
|
||||||
from .parser import Parser
|
from .parser import Parser
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,9 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# local
|
|
||||||
from .utils.project import Projects
|
|
||||||
|
|
||||||
# parent
|
# parent
|
||||||
from ..parser import Parser
|
from ..parser import Parser
|
||||||
|
from ..project import Projects
|
||||||
|
|
||||||
|
|
||||||
class SubCommand:
|
class SubCommand:
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
# system
|
# system
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import SubCommand
|
from ._subcommand import SubCommand
|
||||||
from .utils.project import Projects
|
|
||||||
from .utils.rootkit import Rootkit, prefix_path_mnt
|
|
||||||
|
|
||||||
# parent
|
# parent
|
||||||
from .._constants import CONF_DIRECTORY_NAME
|
from .._constants import CONF_DIRECTORY_NAME
|
||||||
from ..config import LoadedConfig
|
from ..config import LoadedConfig
|
||||||
|
from ..project import Projects
|
||||||
|
from ..rootkit import Rootkit, prefix_path_mnt
|
||||||
|
|
||||||
|
|
||||||
class ConfCopyCommand(SubCommand):
|
class ConfCopyCommand(SubCommand):
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# local
|
# local
|
||||||
from .utils.project import Projects
|
|
||||||
from ._subcommand import ProjectCommand
|
from ._subcommand import ProjectCommand
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ._subcommand import ServiceCommand
|
||||||
from .utils.misc import are_you_sure
|
from ..misc import are_you_sure
|
||||||
|
|
||||||
|
|
||||||
class DownCommand(ServiceCommand):
|
class DownCommand(ServiceCommand):
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# local
|
# local
|
||||||
from .utils.project import Projects
|
|
||||||
from ._subcommand import ProjectCommand
|
from ._subcommand import ProjectCommand
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,9 @@ import yaml
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ._subcommand import ServiceCommand
|
||||||
from .utils.project import Project, Projects
|
|
||||||
|
# parent
|
||||||
|
from ..project import Project, Projects
|
||||||
|
|
||||||
|
|
||||||
def _print_list(strings):
|
def _print_list(strings):
|
||||||
|
|
|
@ -4,11 +4,11 @@ import subprocess
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import SubCommand
|
from ._subcommand import SubCommand
|
||||||
from .utils.executable import Executable
|
|
||||||
from .utils.misc import are_you_sure
|
|
||||||
|
|
||||||
# parent
|
# parent
|
||||||
from ..config import LoadedConfig
|
from ..config import LoadedConfig
|
||||||
|
from ..executable import Executable
|
||||||
|
from ..misc import are_you_sure
|
||||||
|
|
||||||
|
|
||||||
def _find_net(net_name):
|
def _find_net(net_name):
|
||||||
|
|
|
@ -4,7 +4,6 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from .utils.project import Projects
|
|
||||||
from ._subcommand import ProjectCommand
|
from ._subcommand import ProjectCommand
|
||||||
|
|
||||||
# parent
|
# parent
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ._subcommand import ServiceCommand
|
||||||
from .utils.misc import are_you_sure
|
|
||||||
|
# parent
|
||||||
|
from ..misc import are_you_sure
|
||||||
|
|
||||||
|
|
||||||
class UpdateCommand(ServiceCommand):
|
class UpdateCommand(ServiceCommand):
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
# git keep
|
|
Loading…
Reference in a new issue