1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-21 20:33:00 +00:00

move subcommand.py

This commit is contained in:
Jörn-Michael Miehe 2020-08-19 17:21:38 +02:00
parent 717010d9b4
commit bf5bed8734
19 changed files with 21 additions and 37 deletions

View file

@ -3,7 +3,7 @@ import logging
import os
import subprocess
# parent
# local
from .config import LoadedConfig

View file

@ -2,9 +2,9 @@
import logging
import os
# parent
from ..parser import Parser
from ..project import Projects
# local
from .parser import Parser
from .project import Projects
class SubCommand:

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ServiceCommand
from ..subcommand import ServiceCommand
class BuildCommand(ServiceCommand):

View file

@ -2,7 +2,7 @@
import logging
# local
from ._subcommand import ProjectCommand
from ..subcommand import ProjectCommand
class CmdCommand(ProjectCommand):

View file

@ -3,10 +3,8 @@ import logging
import subprocess
# local
from ._subcommand import SubCommand
# parent
from .._constants import CONF_DIRECTORY_NAME
from ..subcommand import SubCommand
from ..config import LoadedConfig
from ..project import Projects
from ..rootkit import Rootkit, prefix_path_mnt

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ProjectCommand
from ..subcommand import ProjectCommand
class DisableCommand(ProjectCommand):

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ServiceCommand
from ..subcommand import ServiceCommand
from ..misc import are_you_sure

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ProjectCommand
from ..subcommand import ProjectCommand
class EnableCommand(ProjectCommand):

View file

@ -3,10 +3,8 @@ import logging
import os
# local
from ._subcommand import SubCommand
# parent (display purposes only)
from .._constants import KIWI_CONF_NAME
from ..subcommand import SubCommand
from ..config import DefaultConfig, LoadedConfig

View file

@ -4,9 +4,7 @@ import os
import yaml
# local
from ._subcommand import ServiceCommand
# parent
from ..subcommand import ServiceCommand
from ..project import Project, Projects

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ServiceCommand
from ..subcommand import ServiceCommand
class LogsCommand(ServiceCommand):

View file

@ -3,9 +3,7 @@ import logging
import subprocess
# local
from ._subcommand import SubCommand
# parent
from ..subcommand import SubCommand
from ..config import LoadedConfig
from ..executable import Executable
from ..misc import are_you_sure

View file

@ -4,10 +4,8 @@ import os
import shutil
# local
from ._subcommand import ProjectCommand
# parent
from .._constants import DEFAULT_DOCKER_COMPOSE_NAME
from ..subcommand import ProjectCommand
class NewCommand(ProjectCommand):

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ServiceCommand
from ..subcommand import ServiceCommand
class PullCommand(ServiceCommand):

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ServiceCommand
from ..subcommand import ServiceCommand
class PushCommand(ServiceCommand):

View file

@ -3,9 +3,7 @@ import logging
import subprocess
# local
from ._subcommand import ServiceCommand
# parent
from ..subcommand import ServiceCommand
from ..config import LoadedConfig

View file

@ -1,7 +1,5 @@
# local
from ._subcommand import SubCommand
# parent
from ..subcommand import SubCommand
from ..config import LoadedConfig

View file

@ -1,5 +1,5 @@
# local
from ._subcommand import ServiceCommand
from ..subcommand import ServiceCommand
class UpCommand(ServiceCommand):

View file

@ -1,7 +1,5 @@
# local
from ._subcommand import ServiceCommand
# parent
from ..subcommand import ServiceCommand
from ..misc import are_you_sure