-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from moderntribe/fix/update-xdebug-add-ssh-com…
…mand Fix XDebug version, add ssh command
- Loading branch information
Showing
4 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* Opens a bash shell in a running stack service. Differently from the `shell` command, this command will fail if the | ||
* service is not already running. | ||
*/ | ||
|
||
namespace Tribe\Test; | ||
|
||
if ( $is_help ) { | ||
echo "Opens a bash shell in a running stack service, defaults to the 'wordpress' one.\n"; | ||
echo PHP_EOL; | ||
echo colorize( "usage: <light_cyan>{$cli_name} shell [<service>]</light_cyan>\n" ); | ||
echo colorize( "example: <light_cyan>{$cli_name} shell wordpress</light_cyan>\n" ); | ||
echo colorize( "example: <light_cyan>{$cli_name} shell chrome</light_cyan>\n" ); | ||
echo colorize( "example: <light_cyan>{$cli_name} shell db</light_cyan>\n" ); | ||
|
||
return; | ||
} | ||
|
||
$service_args = args( [ 'service', '...' ], $args( '...' ), 0 ); | ||
$service = $service_args( 'service', 'codeception' ); | ||
|
||
tric_realtime()( [ 'exec', $service, 'bash' ] ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters