Skip to content

Commit

Permalink
Changelog for 3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Aug 28, 2021
1 parent c9d724d commit 1162a91
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

### 3.0.4 08/28/2021

* Undeprecate escapeArgument() by Mark Dorison (#1039)
* Add setProcessInput and deprecate setInput by Rodrigo(#1034)
* Add array as a type accepted for argv parameter by Rodrigo (#1032)
* Fix null return in createContainer by Rodrigo (#1031)
* Fix mkdir error in taskExtract on PHP 8 by wxa (#1028)
* refactor: Remove hardcoded namespace by Pol Dellaiera refactor (#1026)
* refactor: Use proper use imports by Pol Dellaiera refactor (#1025)
* Run linter in parallel by Viktor Szépe (#1020)
* Fix task pack (#1044)

### 3.0.0 02/21/2021

* PHP 8 support
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Now you can use it simply via `robo`.

### Composer

* Run `composer require consolidation/robo:^3` # Use ^2 for stable
* Run `composer require consolidation/robo:^3`
* Use `vendor/bin/robo` to execute Robo tasks.

## Usage
Expand Down
22 changes: 22 additions & 0 deletions examples/src/Robo/Plugin/Commands/ExampleCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@
*/
class ExampleCommands extends \Robo\Tasks
{
/**
* Demonstrate variable args and options
*
* This command will concatenate two or more parameters. If the --flip flag
* is provided, then the result is the concatenation of two and one.
*
* @command try:echo
* @param array $args The argument list
* @param bool $flip The "flip" option
* @option flip Whether or not the second parameter should come first in the result.
* @aliases c
* @usage bet alpha --flip
* Concatenate "alpha" and "bet".
*/
public function tryEcho(array $args, $flip = false)
{
if ($flip) {
$args = array_reverse($args);
}
return implode(" ", $args);
}

/**
* Watch a file.
*
Expand Down

0 comments on commit 1162a91

Please sign in to comment.