コード例 #1
0
ファイル: runner.py プロジェクト: notfoundry/PyMenuArchitect
def handle_valid_command(command: MenuCommand, session: Session,
                         args: Dict[str, Any]) -> None:
    session.clear()
    exit_code = command.execute(session, args)  # type: ExitCode
    session.get_io().output('Command "{}" completed with exit code {}'.format(
        command.name(), exit_code.name))
    time.sleep(1)
コード例 #2
0
ファイル: runner.py プロジェクト: notfoundry/PyMenuArchitect
def handle_valid_command(command: MenuCommand, session: Session, args: Dict[str, Any]) -> None:
    session.clear()
    exit_code = command.execute(session, args)  # type: ExitCode
    session.get_io().output('Command "{}" completed with exit code {}'.format(command.name(), exit_code.name))
    time.sleep(1)