@@ -537,15 +537,15 @@ await execa('echo', ['unicorns']).pipeStdout('stdout.txt');
537537await execa('echo', ['unicorns']).pipeStderr('stderr.txt');
538538
539539// Similar to `echo unicorns &> stdout.txt` in Bash
540- await execa('echo', ['unicorns'], {all:true}).pipeAll('all.txt');
540+ await execa('echo', ['unicorns'], {all: true}).pipeAll('all.txt');
541541```
542542
543543@example <caption>Redirect input from a file</caption>
544544```
545545import {execa} from 'execa';
546546
547547// Similar to `cat < stdin.txt` in Bash
548- const {stdout} = await execa('cat', {inputFile:'stdin.txt'});
548+ const {stdout} = await execa('cat', {inputFile: 'stdin.txt'});
549549console.log(stdout);
550550//=> 'unicorns'
551551```
@@ -648,7 +648,7 @@ console.log(stdout);
648648import {execa} from 'execa';
649649
650650// Similar to `cat < stdin.txt` in Bash
651- const {stdout} = execaSync('cat', {inputFile:'stdin.txt'});
651+ const {stdout} = execaSync('cat', {inputFile: 'stdin.txt'});
652652console.log(stdout);
653653//=> 'unicorns'
654654```
@@ -794,15 +794,15 @@ type Execa$<StdoutStderrType extends StdoutStderrAll = string> = {
794794 ```
795795 import {$} from 'execa';
796796
797- const branch = $.sync`git branch --show-current`
798- $.sync`dep deploy --branch=${branch}`
797+ const branch = $.sync`git branch --show-current`;
798+ $.sync`dep deploy --branch=${branch}`;
799799 ```
800800
801801 @example <caption>Multiple arguments</caption>
802802 ```
803803 import {$} from 'execa';
804804
805- const args = ['unicorns', '&', 'rainbows!']
805+ const args = ['unicorns', '&', 'rainbows!'];
806806 const {stdout} = $.sync`echo ${args}`;
807807 console.log(stdout);
808808 //=> 'unicorns & rainbows!'
@@ -853,15 +853,15 @@ The `command` string can inject any `${value}` with the following types: string,
853853```
854854import {$} from 'execa';
855855
856- const branch = await $`git branch --show-current`
857- await $`dep deploy --branch=${branch}`
856+ const branch = await $`git branch --show-current`;
857+ await $`dep deploy --branch=${branch}`;
858858```
859859
860860@example <caption>Multiple arguments</caption>
861861```
862862import {$} from 'execa';
863863
864- const args = ['unicorns', '&', 'rainbows!']
864+ const args = ['unicorns', '&', 'rainbows!'];
865865const {stdout} = await $`echo ${args}`;
866866console.log(stdout);
867867//=> 'unicorns & rainbows!'
0 commit comments