Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doc: Add example
Browse files Browse the repository at this point in the history
mpyw committed Dec 28, 2019
1 parent db8b24c commit f99deb0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -128,3 +128,14 @@ class RunCommand extends Command
```

Note that you can use `yes()` as an alias of `usingInfiniteInput()`.

### Use via `StreamableArtisan` Facade

```php
<?php

use Mpyw\StreamableConsole\StreamableArtisan;

StreamableArtisan::usingInputStream("no\n")->call('example:quiz');
StreamableArtisan::usingInfiniteInput("no\n")->call('example:quiz');
```

0 comments on commit f99deb0

Please sign in to comment.