Skip to content

Commit

Permalink
Merge pull request #25 from moderntribe/release/2.2.1-beta
Browse files Browse the repository at this point in the history
Release/2.2.1 beta
  • Loading branch information
defunctl authored May 20, 2020
2 parents 35801f3 + fbcde44 commit cf1f78f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ Note for macOS users: This script will install brew and all of the requirements
### Usage

- Run `so` to see a command list.
- To pass arguments to a command, separate the arguments with `--`, e.g. `so wp cli info -- --format=json`
- To pass arguments to a command, separate the arguments with `--`, e.g. `so wp -- cli info --format=json`

```
SquareOne Global Docker 2.2.0-beta
SquareOne Global Docker 2.2.1-beta
Usage:
command [options] [arguments]
Expand Down Expand Up @@ -103,9 +103,9 @@ Run `so config:copy-compose` to save the latest `docker-compose.yml` to `~/.con

1. Update the version in the [VERSION](./VERSION) file.
1. Run `composer run-script phar:install-tools`
1. Run `composer run-script autocomplete:build`
1. Run `composer dump-autoload -o --no-dev`
1. Run `composer run-script phar:build`
1. Run `composer run-script autocomplete:build`
1. Create a new release/tag on GitHub and attach the generated `so.phar` in the root directory in the binaries box.
1. Once the release is created you may want to bump the VERSION via semver with the `-dev` suffix.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0-beta
2.2.1-beta
2 changes: 1 addition & 1 deletion squareone.autocompletion
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ _so()
;;

test)
opts="${opts} --xdebug --clean"
opts="${opts} --xdebug --no-clean"
;;

wp)
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/LocalDockerCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getCertificate(): Certificate {
*
* @command start
*
* @option browser|b Auto open the project in your default browser
* @option $browser|b Auto open the project in your default browser
*
* @param array $opts
*
Expand Down
15 changes: 8 additions & 7 deletions src/Commands/TestCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ class TestCommands extends LocalDockerCommands {
*
* @command test
*
* @option xdebug Run with Xdebug enabled. Default: false.
* @option clean Clean Codeception output directory and generated code. Default: true.
* @usage e.g. so test -- run integration
* @option $xdebug Run with Xdebug enabled
* @option $no-clean Do not run the codecept clean command first
*
* @param array $args The Codeception command and arguments.
* @param array $opts The options.
* @usage e.g. so test --xdebug -- run integration
*
* @param array $args The Codeception command and arguments.
* @param array $opts The options.
*/
public function test( array $args, array $opts = [ 'xdebug' => false, 'clean' => true ] ): void {
public function test( array $args, array $opts = [ 'xdebug|x' => false, 'no-clean' => false ] ): void {
$command = $this->prepareCommand( $args );

if ( ! empty( $opts['clean'] ) ) {
if ( empty( $opts['no-clean'] ) ) {
$this->runCodecept( 'clean' );
}

Expand Down
14 changes: 8 additions & 6 deletions src/Commands/WpCliCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ class WpCliCommands extends LocalDockerCommands {
* Run WP CLI commands in the SquareOne local container
*
* @command wp
* @option xdebug Run with Xdebug enabled.
* @option return Return the command's result, which requires no TTY
* @usage e.g. so wp -- option get home --format=json
*
* @param array $args The WP CLI command and arguments.
* @param array $opts The options.
* @option $xdebug Run with Xdebug enabled
* @option $return Return the command's result, which requires no TTY
*
* @usage e.g. so wp --xdebug -- option get home --format=json
*
* @param array $args The WP CLI command and arguments.
* @param array $opts The options.
*
* @return \Robo\Result
*/
public function wp( array $args, array $opts = [ 'xdebug' => false, 'return' => false ] ): Result {
public function wp( array $args, array $opts = [ 'xdebug|x' => false, 'return' => false ] ): Result {
$command = $this->prepareCommand( $args );
$projectName = Robo::config()->get( LocalDocker::CONFIG_PROJECT_NAME );

Expand Down

0 comments on commit cf1f78f

Please sign in to comment.