Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get output from runCommand #68

Open
tacman opened this issue Sep 5, 2024 · 0 comments
Open

how to get output from runCommand #68

tacman opened this issue Sep 5, 2024 · 0 comments

Comments

@tacman
Copy link
Contributor

tacman commented Sep 5, 2024

I'd like to capture the output from runCommand.

With CommandRunner I can

CommandRunner::from($application, 'my:command')
    ->withOutput($output) // any OutputInterface
    ->run()
;

but not in runCommand

                        $this->runCommand($cmd);
                        dd($io->output()->fetch()); // doesn't work

Is there a way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant