Skip to content

Commit 1162a91

Browse files
Changelog for 3.0.4
1 parent c9d724d commit 1162a91

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
### 3.0.4 08/28/2021
4+
5+
* Undeprecate escapeArgument() by Mark Dorison (#1039)
6+
* Add setProcessInput and deprecate setInput by Rodrigo(#1034)
7+
* Add array as a type accepted for argv parameter by Rodrigo (#1032)
8+
* Fix null return in createContainer by Rodrigo (#1031)
9+
* Fix mkdir error in taskExtract on PHP 8 by wxa (#1028)
10+
* refactor: Remove hardcoded namespace by Pol Dellaiera refactor (#1026)
11+
* refactor: Use proper use imports by Pol Dellaiera refactor (#1025)
12+
* Run linter in parallel by Viktor Szépe (#1020)
13+
* Fix task pack (#1044)
14+
315
### 3.0.0 02/21/2021
416

517
* PHP 8 support

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Now you can use it simply via `robo`.
5656

5757
### Composer
5858

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

6262
## Usage

examples/src/Robo/Plugin/Commands/ExampleCommands.php

+22
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,28 @@
3232
*/
3333
class ExampleCommands extends \Robo\Tasks
3434
{
35+
/**
36+
* Demonstrate variable args and options
37+
*
38+
* This command will concatenate two or more parameters. If the --flip flag
39+
* is provided, then the result is the concatenation of two and one.
40+
*
41+
* @command try:echo
42+
* @param array $args The argument list
43+
* @param bool $flip The "flip" option
44+
* @option flip Whether or not the second parameter should come first in the result.
45+
* @aliases c
46+
* @usage bet alpha --flip
47+
* Concatenate "alpha" and "bet".
48+
*/
49+
public function tryEcho(array $args, $flip = false)
50+
{
51+
if ($flip) {
52+
$args = array_reverse($args);
53+
}
54+
return implode(" ", $args);
55+
}
56+
3557
/**
3658
* Watch a file.
3759
*

0 commit comments

Comments
 (0)