Skip to content

Commit

Permalink
Add "output" alias to append output file
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Feb 9, 2018
1 parent 1c09f2f commit f73ab17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,14 @@ public function file(string $source, bool $checkIfFileExists = true, bool $appen
return $this;
}

/**
* Add an output file to the end of the command.
*/
public function output(string $source): self
{
return $this->file($source, false, true);
}

/**
* Checks if file exists in the filesystem.
*/
Expand Down

0 comments on commit f73ab17

Please sign in to comment.