From aa4028f69bb611f8115abeb55319097a592be7e5 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Sun, 21 Feb 2021 10:51:05 -0800 Subject: [PATCH] Robo release 3.0.0 --- docs/tasks/ApiGen.md | 2 ++ docs/tasks/Archive.md | 3 +++ docs/tasks/Assets.md | 5 +++++ docs/tasks/Base.md | 7 +++++++ docs/tasks/Bower.md | 3 +++ docs/tasks/Composer.md | 11 +++++++++++ docs/tasks/Development.md | 10 ++++++++-- docs/tasks/Docker.md | 9 +++++++++ docs/tasks/File.md | 5 +++++ docs/tasks/Filesystem.md | 11 +++++++++-- docs/tasks/Gulp.md | 2 ++ docs/tasks/Logfile.md | 27 +++++++++++++++++---------- docs/tasks/Npm.md | 3 +++ docs/tasks/Remote.md | 3 +++ docs/tasks/Testing.md | 7 +++++++ docs/tasks/Vcs.md | 5 +++++ src/Robo.php | 2 +- 17 files changed, 100 insertions(+), 15 deletions(-) diff --git a/docs/tasks/ApiGen.md b/docs/tasks/ApiGen.md index 1585f292b..f911467c5 100644 --- a/docs/tasks/ApiGen.md +++ b/docs/tasks/ApiGen.md @@ -48,6 +48,7 @@ $this->taskApiGen('./vendor/apigen/apigen.phar') * `colors($colors)` * `param bool|string` $colors * `updateCheck($check)` * `param bool|string` $check * `debug($debug)` * `param bool|string` $debug +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `rawArg($arg)` Pass the provided string in its raw (as provided) form as an argument to executable. @@ -55,3 +56,4 @@ $this->taskApiGen('./vendor/apigen/apigen.phar') * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + diff --git a/docs/tasks/Archive.md b/docs/tasks/Archive.md index 4e1e35dcb..5df8f6208 100644 --- a/docs/tasks/Archive.md +++ b/docs/tasks/Archive.md @@ -26,6 +26,7 @@ $this->taskExtract($archivePath) * `to($to)` Location to store extracted files. * `preserveTopDirectory($preserve = null)` * `param bool` $preserve +* `setOutput($output)` Sets the Console Output. ## Pack @@ -49,4 +50,6 @@ $this->taskPack( * `addDir($placementLocation, $filesystemLocation)` Alias for addFile, in case anyone has angst about using * `add($item)` Add a file or directory, or list of same to the archive. * `exclude($ignoreList)` Allow files or folder to be excluded from the archive. Use regex, without enclosing slashes. +* `setOutput($output)` Sets the Console Output. + diff --git a/docs/tasks/Assets.md b/docs/tasks/Assets.md index f71b6dad6..3b9b1225e 100644 --- a/docs/tasks/Assets.md +++ b/docs/tasks/Assets.md @@ -60,6 +60,7 @@ This will execute as: * `to($target)` Sets the target directory where the files will be copied to. * `minifier($minifier, array $options = Array ( ) )` Sets the minifier. +* `setOutput($output)` Sets the Console Output. ## Less @@ -104,6 +105,7 @@ inject the name there. * `setImportPaths($dirs)` Sets import directories * `setFormatter($formatterName)` * `param string` $formatterName * `compiler($compiler, array $options = Array ( ) )` Sets the compiler. +* `setOutput($output)` Sets the Console Output. ## Minify @@ -129,6 +131,7 @@ composer require natxet/cssmin:^3.0 * `keepImportantComments($keepImportantComments)` keepImportantComments option for the JS minimisation. * `specialVarRx($specialVarRx)` Set specialVarRx option for the JS minimisation. * `__toString()` @return string +* `setOutput($output)` Sets the Console Output. ## Scss @@ -160,4 +163,6 @@ inject the name there. * `addImportPath($dir)` Adds import directory * `setImportPaths($dirs)` Sets import directories * `compiler($compiler, array $options = Array ( ) )` Sets the compiler. +* `setOutput($output)` Sets the Console Output. + diff --git a/docs/tasks/Base.md b/docs/tasks/Base.md index b718cc133..25fa7171e 100644 --- a/docs/tasks/Base.md +++ b/docs/tasks/Base.md @@ -20,6 +20,7 @@ if ($this->taskExec('phpunit .')->run()->wasSuccessful()) { ``` * `simulate($context)` {@inheritdoc} +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -49,6 +50,7 @@ $this->taskExecStack() * `exec($command)` * `param string|string[]|CommandInterface` $command * `stopOnFail($stopOnFail = null)` * `param bool` $stopOnFail * `result($result)` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command ## ParallelExec @@ -68,6 +70,8 @@ $this->taskParallelExec() * `process($command)` * `param string|\Robo\Contract\CommandInterface` $command * `waitInterval($waitInterval)` Parallel processing will wait `$waitInterval` seconds after launching each process and before +* `setOutput($output)` Sets the Console Output. + ## SymfonyCommand @@ -91,6 +95,8 @@ $this->taskSymfonyCommand(new ModelGeneratorCommand()) * `arg($arg, $value)` * `param string` $arg * `opt($option, $value = null)` +* `setOutput($output)` Sets the Console Output. + ## Watch @@ -146,4 +152,5 @@ $this The $event parameter is a [standard Symfony file resource object](https://api.symfony.com/3.1/Symfony/Component/Config/Resource/FileResource.html) * `monitor($paths, $callable, $events = null)` * `param string|string[]` $paths +* `setOutput($output)` Sets the Console Output. diff --git a/docs/tasks/Bower.md b/docs/tasks/Bower.md index db0bd0e4d..8a9518594 100644 --- a/docs/tasks/Bower.md +++ b/docs/tasks/Bower.md @@ -21,6 +21,7 @@ $this->taskBowerInstall('path/to/my/bower') * `forceLatest()` adds `force-latest` option to bower * `noDev()` adds `production` option to bower * `offline()` adds `offline` option to bower +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -29,6 +30,7 @@ $this->taskBowerInstall('path/to/my/bower') * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + ## Update @@ -50,6 +52,7 @@ $this->taskBowerUpdate('path/to/my/bower') * `forceLatest()` adds `force-latest` option to bower * `noDev()` adds `production` option to bower * `offline()` adds `offline` option to bower +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values diff --git a/docs/tasks/Composer.md b/docs/tasks/Composer.md index 2f3ec65ea..7b31be4e3 100644 --- a/docs/tasks/Composer.md +++ b/docs/tasks/Composer.md @@ -26,6 +26,7 @@ $this->taskComposerValidate()->run(); * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -66,6 +67,7 @@ $this->taskComposerConfig()->set('bin-dir', 'bin/')->run(); * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -107,6 +109,7 @@ $this->taskComposerCreateProject()->source('foo/bar')->target('myBar')->run(); * `disablePlugins($disable = null)` disable plugins * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -158,6 +161,7 @@ $this->taskComposerDumpAutoload('path/to/my/composer.phar') * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -201,6 +205,7 @@ $this->taskComposerInit()->run(); * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -246,6 +251,7 @@ $this->taskComposerInstall('path/to/my/composer.phar') * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -284,6 +290,7 @@ $this->taskComposerRemove()->run(); * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -320,6 +327,7 @@ $this->taskComposerRequire()->dependency('foo/bar', '^.2.4.8')->run(); * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -328,6 +336,7 @@ $this->taskComposerRequire()->dependency('foo/bar', '^.2.4.8')->run(); * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + ## Update @@ -365,6 +374,7 @@ $this->taskComposerUpdate('path/to/my/composer.phar') * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -404,6 +414,7 @@ $this->taskComposerValidate()->run(); * `noScripts($disable = null)` skip scripts * `workingDir($dir)` adds `--working-dir $dir` option to composer * `buildCommand()` Copy class fields into command options as directed. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values diff --git a/docs/tasks/Development.md b/docs/tasks/Development.md index da37144a4..3ab6bdea8 100644 --- a/docs/tasks/Development.md +++ b/docs/tasks/Development.md @@ -36,6 +36,7 @@ $this->taskChangelog() * `change($change)` * `param string` $change * `getChanges()` @return array * `processLogRow($i)` * `param string` $i +* `setOutput($output)` Sets the Console Output. ## GenerateMarkdownDoc @@ -93,6 +94,7 @@ $this->taskGenDoc('models.md') * `append($append)` Inserts text at the end of markdown file. * `text($text)` * `param string` $text * `textForClass($item)` * `param string` $item +* `setOutput($output)` Sets the Console Output. ## Generate @@ -105,7 +107,7 @@ $this->taskGenerateTask('Symfony\Component\Filesystem\Filesystem', 'FilesystemSt ->run(); ``` - +* `setOutput($output)` Sets the Console Output. ## GitHubRelease @@ -139,6 +141,7 @@ $this->taskGitHubRelease('0.1.0') * `user($user)` * `param string` $user * `password($password)` * `param string` $password * `accessToken($token)` * `param string` $token +* `setOutput($output)` Sets the Console Output. ## OpenBrowser @@ -160,7 +163,7 @@ $this->taskOpenBrowser([ ->run(); ``` - +* `setOutput($output)` Sets the Console Output. ## PackPhar @@ -201,6 +204,7 @@ $pharTask = $this->taskPackPhar('package/codecept.phar') * `addFile($path, $file)` * `param string` $path * `addFiles($files)` * `param \Symfony\Component\Finder\SplFileInfo[]` $files * `executable($file)` * `param string` $file +* `setOutput($output)` Sets the Console Output. ## PhpServer @@ -229,6 +233,7 @@ $this->taskServer(8000) * `host($host)` * `param string` $host * `dir($path)` * `param string` $path * `simulate($context)` {@inheritdoc} +* `setOutput($output)` Sets the Console Output. * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values * `rawArg($arg)` Pass the provided string in its raw (as provided) form as an argument to executable. @@ -259,3 +264,4 @@ $this->taskSemVer('.semver') * `prerelease($tag = null)` * `param string` $tag * `metadata($data)` * `param array|string` $data + diff --git a/docs/tasks/Docker.md b/docs/tasks/Docker.md index 804944362..dbb3b312e 100644 --- a/docs/tasks/Docker.md +++ b/docs/tasks/Docker.md @@ -22,6 +22,7 @@ Class Build * `tag($tag)` * `param string` $tag * `enableBuildKit()` * `return` $this +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -52,6 +53,7 @@ $task->dockerCommit($result) ``` * `name($name)` * `param string` $name +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -88,6 +90,7 @@ $this->taskDockerExec($test) * `detached()` * `return` $this * `exec($command)` * `param string|\Robo\Contract\CommandInterface` $command +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -110,6 +113,7 @@ $this->taskDockerPull('wordpress') ``` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -131,6 +135,7 @@ $this->taskDockerRemove($container) ``` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -197,6 +202,7 @@ $this->taskDockerRun('wordpress') * `tmpDir($dir)` * `param string` $dir * `getTmpDir()` @return string * `getUniqId()` @return string +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -217,6 +223,7 @@ $this->taskDockerStart($cidOrResult) ?> ``` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -237,6 +244,7 @@ $this->taskDockerStop($cidOrResult) ?> ``` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -245,3 +253,4 @@ $this->taskDockerStop($cidOrResult) * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + diff --git a/docs/tasks/File.md b/docs/tasks/File.md index b2617998d..77b5dc65f 100644 --- a/docs/tasks/File.md +++ b/docs/tasks/File.md @@ -17,6 +17,7 @@ $this->taskConcat([ ``` * `to($dst)` set the destination file +* `setOutput($output)` Sets the Console Output. ## Replace @@ -52,6 +53,8 @@ $this->taskReplaceInFile('box/robo.txt') * `to($to)` Value(s) to be set as a replacement. * `regex($regex)` Regex to match string to be replaced. * `limit($limit)` If used with $this->regexp() how many counts will be replaced +* `setOutput($output)` Sets the Console Output. + ## TmpFile @@ -91,6 +94,7 @@ $collection->run(); * `originalContents()` @return string * `wouldChange()` @return bool * `getPath()` @return string +* `setOutput($output)` Sets the Console Output. ## Write @@ -121,4 +125,5 @@ $this->taskWriteToFile('blogpost.md') * `originalContents()` @return string * `wouldChange()` @return bool * `getPath()` @return string +* `setOutput($output)` Sets the Console Output. diff --git a/docs/tasks/Filesystem.md b/docs/tasks/Filesystem.md index 640fa85a9..286e310ca 100644 --- a/docs/tasks/Filesystem.md +++ b/docs/tasks/Filesystem.md @@ -13,7 +13,7 @@ $this->_cleanDir('app/cache'); ?> ``` - +* `setOutput($output)` Sets the Console Output. ## CopyDir @@ -31,6 +31,7 @@ $this->_copyDir('dist/config', 'config'); * `dirPermissions($value)` Sets the default folder permissions for the destination if it doesn't exist * `exclude($exclude = null)` List files to exclude. * `overwrite($overwrite)` Destination files newer than source files are overwritten. +* `setOutput($output)` Sets the Console Output. ## DeleteDir @@ -45,7 +46,7 @@ $this->_deleteDir(['tmp', 'log']); ?> ``` - +* `setOutput($output)` Sets the Console Output. ## FilesystemStack @@ -81,6 +82,7 @@ $this->_mkdir('logs'); * `$this mirror(string $from, string $to, \Traversable $iterator = null, array $options = [])` * `stopOnFail($stop = null)` * `param bool` $stop +* `setOutput($output)` Sets the Console Output. ## FlattenDir @@ -148,6 +150,7 @@ $this->taskFlattenDir(['assets/*.min.js' => 'dist']) * `includeParents($parents)` Sets the value from which direction and how much parent dirs should be included. * `parentDir($dir)` Sets the parent directory from which the relative parent directories will be calculated. * `to($target)` Sets the target directory where the files will be copied to. +* `setOutput($output)` Sets the Console Output. ## MirrorDir @@ -163,6 +166,8 @@ $this->_mirrorDir('dist/config/', 'config/'); ?> ``` +* `setOutput($output)` Sets the Console Output. + ## TmpDir @@ -192,6 +197,7 @@ $tmpPath = $this->_tmpDir(); * `cwd($shouldChangeWorkingDirectory = null)` Flag that we should cwd to the temporary directory when it is * `complete()` Delete this directory when our collection completes. * `getPath()` Get a reference to the path to the temporary directory, so that +* `setOutput($output)` Sets the Console Output. ## WorkDir @@ -215,4 +221,5 @@ $collection->run(); * `rollback()` Delete our working directory * `getPath()` Get a reference to the path to the temporary directory, so that * `cwd($shouldChangeWorkingDirectory = null)` Flag that we should cwd to the temporary directory when it is +* `setOutput($output)` Sets the Console Output. diff --git a/docs/tasks/Gulp.md b/docs/tasks/Gulp.md index 53482cfb4..ebd516788 100644 --- a/docs/tasks/Gulp.md +++ b/docs/tasks/Gulp.md @@ -20,6 +20,7 @@ $this->taskGulpRun('clean') * `noColor()` adds `--no-color` option to gulp * `color()` adds `--color` option to gulp * `simple()` adds `--tasks-simple` option to gulp +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -28,3 +29,4 @@ $this->taskGulpRun('clean') * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + diff --git a/docs/tasks/Logfile.md b/docs/tasks/Logfile.md index a76378ad2..d52e97382 100644 --- a/docs/tasks/Logfile.md +++ b/docs/tasks/Logfile.md @@ -1,32 +1,39 @@ # Logfile Tasks -## Rotate logfile +## RotateLog -Rotate and purge obsolete logs. +Rotates a log (or any other) file ``` php taskRotateLog(['logfile.log'])->run(); -// as shortcut +// or use shortcut $this->_rotateLog(['logfile.log']); + ?> ``` -* `chmod(int $chmod)` Changes file mode to octal $chmod, default is disabled. -* `keep(int $keep)` Logfiles to keep, default is 3. +* `keep($keep)` * `param int` $keep +* `chmod($chmod)` * `param int` $chmod +* `setOutput($output)` Sets the Console Output. + + -## Truncate logfile +## TruncateLog -Truncates or create empty logfile if logfile not exists. +Truncates a log (or any other) file ``` php taskTruncateLog(['logfile.log'])->run(); -// as shortcut -$this->_rotateTruncate(['logfile.log']); +// or use shortcut +$this->_truncateLog(['logfile.log']); + ?> ``` -* `chmod(int $chmod)` Changes file mode to octal $chmod, default is disabled. +* `chmod($chmod)` * `param int` $chmod +* `setOutput($output)` Sets the Console Output. + diff --git a/docs/tasks/Npm.md b/docs/tasks/Npm.md index a864fb67d..9d41cdf73 100644 --- a/docs/tasks/Npm.md +++ b/docs/tasks/Npm.md @@ -18,6 +18,7 @@ $this->taskNpmInstall('path/to/my/npm') ``` * `noDev()` adds `production` option to npm +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -26,6 +27,7 @@ $this->taskNpmInstall('path/to/my/npm') * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + ## Update @@ -44,6 +46,7 @@ $this->taskNpmUpdate('path/to/my/npm') ``` * `noDev()` adds `production` option to npm +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values diff --git a/docs/tasks/Remote.md b/docs/tasks/Remote.md index 944fc871e..f1d8b0e27 100644 --- a/docs/tasks/Remote.md +++ b/docs/tasks/Remote.md @@ -68,6 +68,7 @@ if ('y' === $this->ask('Do you want to run (y/n)')) { * `filter($pattern)` * `param array|string` $pattern * `filesFrom($file)` * `param string` $file * `remoteShell($command)` * `param string` $command +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -123,6 +124,7 @@ You can configure the remote directory for all future calls: * `verbose()` * `return` $this * `exec($command)` * `param string|string[]|CommandInterface` $command * `simulate($context)` {@inheritdoc} +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -131,3 +133,4 @@ You can configure the remote directory for all future calls: * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + diff --git a/docs/tasks/Testing.md b/docs/tasks/Testing.md index 417cf24d7..3d25d08f1 100644 --- a/docs/tasks/Testing.md +++ b/docs/tasks/Testing.md @@ -22,6 +22,7 @@ $this->taskAtoum() * `debug()` Use atoum's debug mode. * `files($files)` Test file or test files to run. * `directories($directories)` Test directory or directories to run. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -53,6 +54,7 @@ $this->taskBehat() * `suite($suite)` * `param string` $suite * `verbose($level = null)` * `param string` $level * `format($formater)` * `param string` $formater +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -95,7 +97,9 @@ $this->taskCodecept() * `coverageHtml($html = null)` collect code coverage and generate html report. You may pass * `debug()` * `return` $this * `noRebuild()` * `return` $this +* `noExit()` * `return` $this * `failGroup($failGroup)` * `param string` $failGroup +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -130,6 +134,7 @@ $this->taskPHPUnit() * `debug()` * `return` $this * `files($files)` Directory of test files or single test file to run. * `file($file)` Test the provided file. +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -161,6 +166,7 @@ $this->taskPhpspec() * `noInteraction()` * `return` $this * `config($config_file)` * `param string` $config_file * `format($formater)` * `param string` $formater +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command * `arg($arg)` Pass argument to executable. Its value will be automatically escaped. * `args($args)` Pass methods parameters as arguments to executable. Argument values @@ -169,3 +175,4 @@ $this->taskPhpspec() * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. + diff --git a/docs/tasks/Vcs.md b/docs/tasks/Vcs.md index 80e1d0938..7e01f5057 100644 --- a/docs/tasks/Vcs.md +++ b/docs/tasks/Vcs.md @@ -37,6 +37,7 @@ $this->taskGitStack() * `exec($command)` * `param string|string[]|CommandInterface` $command * `stopOnFail($stopOnFail = null)` * `param bool` $stopOnFail * `result($result)` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command ## HgStack @@ -69,8 +70,10 @@ $this->hgStack * `exec($command)` * `param string|string[]|CommandInterface` $command * `stopOnFail($stopOnFail = null)` * `param bool` $stopOnFail * `result($result)` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command + ## SvnStack @@ -102,5 +105,7 @@ $this->taskSvnStack('username', 'password') * `exec($command)` * `param string|string[]|CommandInterface` $command * `stopOnFail($stopOnFail = null)` * `param bool` $stopOnFail * `result($result)` +* `setOutput($output)` Sets the Console Output. * `dir($dir)` Changes working directory of command + diff --git a/src/Robo.php b/src/Robo.php index 42360c760..0f694c30a 100644 --- a/src/Robo.php +++ b/src/Robo.php @@ -21,7 +21,7 @@ class Robo { const APPLICATION_NAME = 'Robo'; - const VERSION = '3.0.0-dev'; + const VERSION = '3.0.0'; /** * The currently active container object, or NULL if not initialized yet.