Skip to content

Cli command chain without interaction #123

Open
@sbo-develop

Description

Feature Request

Command chains are not possible to run without interaction. Chains are only available with human interaction. If the input is not interactive, it never executes the chain.

This listener is stopping when the input isn't interactive:
vendor/laminas/laminas-cli/src/Listener/TerminateListener.php
public function __invoke(ConsoleTerminateEvent $event): void { if ($event->getExitCode() !== 0 || ! $event->getInput()->isInteractive()) { // Here it stops when its not interactive return; }

Q A
New Feature yes
RFC no
BC Break no

Summary

Execute command chains without interaction, maybe with a --force-chain-execution parameter to not change the past behaviour.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions