File tree 3 files changed +35
-1
lines changed
examples/src/Robo/Plugin/Commands
3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
15
### 3.0.0 02/21/2021
4
16
5
17
* PHP 8 support
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ Now you can use it simply via `robo`.
56
56
57
57
### Composer
58
58
59
- * Run ` composer require consolidation/robo:^3 ` # Use ^2 for stable
59
+ * Run ` composer require consolidation/robo:^3 `
60
60
* Use ` vendor/bin/robo ` to execute Robo tasks.
61
61
62
62
## Usage
Original file line number Diff line number Diff line change 32
32
*/
33
33
class ExampleCommands extends \Robo \Tasks
34
34
{
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
+
35
57
/**
36
58
* Watch a file.
37
59
*
You can’t perform that action at this time.
0 commit comments