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

wp-env: Ensure the environment is used with the logs command. #27907

Merged
merged 1 commit into from
Jan 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
wp-env: Ensure the environment is used with the logs command.
While I was debugging something I noticed I was working with the test
environment rather than the main development one. I realised I couldn't
switch to tailing the logs of the test environment, and it was because
the optional parameter wasn't being passed to the command.

This change fixes that, by adding the optional parameter to the command
definition.
pablinos committed Dec 28, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit b432997178e0a51ecf5b2040b2d70201a6530280
2 changes: 1 addition & 1 deletion packages/env/lib/cli.js
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ module.exports = function cli() {
withSpinner( env.clean )
);
yargs.command(
'logs',
'logs [environment]',
'displays PHP and Docker logs for given WordPress environment.',
( args ) => {
args.positional( 'environment', {