move subcommand.py
This commit is contained in:
parent
717010d9b4
commit
bf5bed8734
19 changed files with 21 additions and 37 deletions
|
@ -3,7 +3,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# parent
|
# local
|
||||||
from .config import LoadedConfig
|
from .config import LoadedConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# parent
|
# local
|
||||||
from ..parser import Parser
|
from .parser import Parser
|
||||||
from ..project import Projects
|
from .project import Projects
|
||||||
|
|
||||||
|
|
||||||
class SubCommand:
|
class SubCommand:
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
|
|
||||||
class BuildCommand(ServiceCommand):
|
class BuildCommand(ServiceCommand):
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ProjectCommand
|
from ..subcommand import ProjectCommand
|
||||||
|
|
||||||
|
|
||||||
class CmdCommand(ProjectCommand):
|
class CmdCommand(ProjectCommand):
|
||||||
|
|
|
@ -3,10 +3,8 @@ import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import SubCommand
|
|
||||||
|
|
||||||
# parent
|
|
||||||
from .._constants import CONF_DIRECTORY_NAME
|
from .._constants import CONF_DIRECTORY_NAME
|
||||||
|
from ..subcommand import SubCommand
|
||||||
from ..config import LoadedConfig
|
from ..config import LoadedConfig
|
||||||
from ..project import Projects
|
from ..project import Projects
|
||||||
from ..rootkit import Rootkit, prefix_path_mnt
|
from ..rootkit import Rootkit, prefix_path_mnt
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ProjectCommand
|
from ..subcommand import ProjectCommand
|
||||||
|
|
||||||
|
|
||||||
class DisableCommand(ProjectCommand):
|
class DisableCommand(ProjectCommand):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
from ..misc import are_you_sure
|
from ..misc import are_you_sure
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ProjectCommand
|
from ..subcommand import ProjectCommand
|
||||||
|
|
||||||
|
|
||||||
class EnableCommand(ProjectCommand):
|
class EnableCommand(ProjectCommand):
|
||||||
|
|
|
@ -3,10 +3,8 @@ import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import SubCommand
|
|
||||||
|
|
||||||
# parent (display purposes only)
|
|
||||||
from .._constants import KIWI_CONF_NAME
|
from .._constants import KIWI_CONF_NAME
|
||||||
|
from ..subcommand import SubCommand
|
||||||
from ..config import DefaultConfig, LoadedConfig
|
from ..config import DefaultConfig, LoadedConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,7 @@ import os
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
# parent
|
|
||||||
from ..project import Project, Projects
|
from ..project import Project, Projects
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
|
|
||||||
class LogsCommand(ServiceCommand):
|
class LogsCommand(ServiceCommand):
|
||||||
|
|
|
@ -3,9 +3,7 @@ import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import SubCommand
|
from ..subcommand import SubCommand
|
||||||
|
|
||||||
# parent
|
|
||||||
from ..config import LoadedConfig
|
from ..config import LoadedConfig
|
||||||
from ..executable import Executable
|
from ..executable import Executable
|
||||||
from ..misc import are_you_sure
|
from ..misc import are_you_sure
|
||||||
|
|
|
@ -4,10 +4,8 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ProjectCommand
|
|
||||||
|
|
||||||
# parent
|
|
||||||
from .._constants import DEFAULT_DOCKER_COMPOSE_NAME
|
from .._constants import DEFAULT_DOCKER_COMPOSE_NAME
|
||||||
|
from ..subcommand import ProjectCommand
|
||||||
|
|
||||||
|
|
||||||
class NewCommand(ProjectCommand):
|
class NewCommand(ProjectCommand):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
|
|
||||||
class PullCommand(ServiceCommand):
|
class PullCommand(ServiceCommand):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
|
|
||||||
class PushCommand(ServiceCommand):
|
class PushCommand(ServiceCommand):
|
||||||
|
|
|
@ -3,9 +3,7 @@ import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
# parent
|
|
||||||
from ..config import LoadedConfig
|
from ..config import LoadedConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import SubCommand
|
from ..subcommand import SubCommand
|
||||||
|
|
||||||
# parent
|
|
||||||
from ..config import LoadedConfig
|
from ..config import LoadedConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
|
|
||||||
class UpCommand(ServiceCommand):
|
class UpCommand(ServiceCommand):
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# local
|
# local
|
||||||
from ._subcommand import ServiceCommand
|
from ..subcommand import ServiceCommand
|
||||||
|
|
||||||
# parent
|
|
||||||
from ..misc import are_you_sure
|
from ..misc import are_you_sure
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue