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

Add a debug/info task to list installed versions #15

Open
ocean90 opened this issue Oct 7, 2020 · 0 comments
Open

Add a debug/info task to list installed versions #15

ocean90 opened this issue Oct 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ocean90
Copy link
Member

ocean90 commented Oct 7, 2020

To quickly check the installed versions of PHP, WP-CLI and composer a deploy:debug or debug:remote task would be helpful.

task('deploy:debug', function () {
	writeln( '<info>WP-CLI info:</info>' );
	writeln( run( 'wp cli info' ) );
	writeln( '<info>PHP info:</info>' );
	writeln( run( 'php -v' ) );
	writeln( '<info>Composer info:</info>' );
	writeln( run( 'composer -V' ) );
} );

Note that deploy:info already exists.

@ocean90 ocean90 added the enhancement New feature or request label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant