We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when calling a command in like a template with \Kirby\CLI\CLI::command('janitor:whistle') it will fail with undefined constant STDOUT.
\Kirby\CLI\CLI::command('janitor:whistle')
undefined constant STDOUT
suggestion when a command is not run in cli (check via php_sapi_name() === 'cli') then set output to quiet automatically. see #20.
php_sapi_name() === 'cli'
alternative than to quiet it would be to push it to an static array on the kirby cli object - kind of like a log.
The text was updated successfully, but these errors were encountered:
i encountered this when trying to run the now core clear:cache cli command from my janitor plugin.
clear:cache
Sorry, something went wrong.
any plans to handle this issue @distantnative ?
No branches or pull requests
when calling a command in like a template with
\Kirby\CLI\CLI::command('janitor:whistle')
it will fail withundefined constant STDOUT
.suggestion when a command is not run in cli (check via
php_sapi_name() === 'cli'
) then set output to quiet automatically. see #20.alternative than to quiet it would be to push it to an static array on the kirby cli object - kind of like a log.
The text was updated successfully, but these errors were encountered: