Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jan 21, 2015
1 parent 4d3bc2e commit 70fd25d
Show file tree
Hide file tree
Showing 21 changed files with 68 additions and 1,312 deletions.
7 changes: 4 additions & 3 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,23 +98,24 @@ function (\ReflectionMethod $m) {
if ($m->isConstructor() or $m->isDestructor() or $m->isStatic()) {
return false;
}
return !in_array($m->name, ['run', '', '__call', 'getCommand']) and $m->isPublic(); // methods are not documented
return !in_array($m->name, ['run', '', '__call', 'getCommand', 'getPrinted']) and $m->isPublic(); // methods are not documented
}
)->processClassSignature(
function ($c) {
return "## " . preg_replace('~Task$~', '', $c->getShortName()) . "\n";
}
)->processClassDocBlock(
function ($c, $doc) {
return preg_replace('~@method .*?\wTask (.*?)\)~', '* `$1)` ', $doc);
return preg_replace('~@method .*?(.*?)\)~', '* `$1)` ', $doc);
}
)->processMethodSignature(
function (\ReflectionMethod $m, $text) {
return str_replace('#### *public* ', '* `', $text) . '`';
}
)->processMethodDocBlock(
function (\ReflectionMethod $m, $text) {
return $text ? ' ' . strtok($text, "\n") : '';

return $text ? ' ' . trim(strtok($text, "\n"), "\n") : '';
}
)->run();
}
Expand Down
32 changes: 0 additions & 32 deletions docs/tasks/ApiGen.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ $this->taskApiGen('./apigen.neon')
?>
```









* `config($config)`
* `source($src)` * `param array|string|Traversable` $src one or more source values
* `destination($dest)`
Expand Down Expand Up @@ -54,33 +46,9 @@ $this->taskApiGen('./apigen.neon')
* `colors($colors)` * `param boolean|string` $colors 'yes' or true colorize the output, 'no' or false otherwise
* `updateCheck($check)` * `param boolean|string` $check 'yes' or true to check for updates, 'no' or false otherwise
* `debug($debug)` * `param boolean|string` $debug 'yes' or true to enable debug mode, 'no' or false otherwise




















* `arg($arg)` Pass argument to executable
* `args($args)` Pass methods parameters as arguments to executable
* `option($option, $value = null)` Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter
* `getPrinted()`
* `dir($dir)` changes working directory of command
* `printed($arg)` Should command output be printed




25 changes: 0 additions & 25 deletions docs/tasks/Assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,7 @@ Please install additional dependencies to use:
```





* `to($dst)` Sets destination. Tries to guess type from it.
* `type($type)` Sets type with validation.




* `__toString()` @return string



















144 changes: 4 additions & 140 deletions docs/tasks/Base.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,51 +19,15 @@ if ($this->taskExec('phpunit .')->run()->wasSuccessful()) {
?>
```











* `background()` Executes command in background mode (asynchronously)
* `timeout($timeout)` Stop command if it runs longer then $timeout in seconds
* `idleTimeout($timeout)` Stops command if it does not output something for a while

* `stop()`



















* `getPrinted()`

* `arg($arg)` Pass argument to executable
* `args($args)` Pass methods parameters as arguments to executable
* `option($option, $value = null)` Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter
* `dir($dir)` changes working directory of command
* `printed($arg)` Should command output be printed




## ExecStack


Expand All @@ -81,45 +45,13 @@ $this->taskExecStack()
?>
```

@method ExecStack exec(string)
@method ExecStack stopOnFail(string)







* `getPrinted()`
* `ExecStack exec(string)`
* `ExecStack stopOnFail(string)`

* `exec($command)`
* `printed($arg)` Should command output be printed
* `dir($dir)` changes working directory of command

























## ParallelExec


Expand All @@ -136,41 +68,12 @@ $this->taskParallelExec()
```


@method \Robo\Task\Base\ParallelExec timeout(int $timeout) stops process if it runs longer then `$timeout` (seconds)
@method \Robo\Task\Base\ParallelExec idleTimeout(int $timeout) stops process if it does not output for time longer then `$timeout` (seconds)

* `\Robo\Task\Base\ParallelExec timeout(int $timeout)` stops process if it runs longer then `$timeout` (seconds)
* `\Robo\Task\Base\ParallelExec idleTimeout(int $timeout)` stops process if it does not output for time longer then `$timeout` (seconds)




* `getPrinted()`
* `printed($isPrinted = null)`
* `process($command)`

























## SymfonyCommand


Expand All @@ -191,28 +94,9 @@ $this->taskSymfonyCommand(new ModelGeneratorCommand())
?>
```


* `arg($arg, $value)`
* `opt($option, $value = null)`



















## Watch


Expand All @@ -230,26 +114,6 @@ $this->taskWatch()
?>
```



* `monitor($paths, $callable)`




















Loading

0 comments on commit 70fd25d

Please sign in to comment.