Commit 99b5a1bb authored by Adrian DC's avatar Adrian DC
Browse files

chore: cli: isolate the CLI main entrypoint to a cli/ submodule

parent db2a6d62
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for pexpect_executor/__main__.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
# Components
from pexpect_executor.main import main
from pexpect_executor.cli.main import main

# Entrypoint
main()

Empty file added.

+6 −6
Changes for pexpect_executor/cli/main.py: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -5,12 +5,12 @@ from argparse import ArgumentParser, RawTextHelpFormatter
from sys import exit

# Components
from .executor import Executor
from .features.actions import ActionsFeature
from .package.bundle import Bundle
from .package.version import Version
from .system.platform import Platform
from .types.commands import Commands
from ..executor import Executor
from ..features.actions import ActionsFeature
from ..package.bundle import Bundle
from ..package.version import Version
from ..system.platform import Platform
from ..types.commands import Commands

# Main
def main():
+1 −1
Changes for setup.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ setup(
    python_requires='>=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*',
    entry_points={
        'console_scripts': [
            'pexpect-executor = pexpect_executor.main:main',
            'pexpect-executor = pexpect_executor.cli.main:main',
        ],
    },
)