Skip to content

Commit

Permalink
docs: mention quote for pwsh (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub authored Jun 19, 2024
1 parent bf1cdee commit 4ab61e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ await $`mkdir ${'path/to-dir/' + name}`
await $`mkdir path/to-dir/${name}`
```

Keep in mind, that `PowerShell` or `pwsh` requires a corresponding quote implementation. Define it [via helpers](./setup#bash) or manually:

```js
import { quotePowerShell } from 'zx'

$.quote = quotePowerShell
```

## Array of arguments

Zx can also accept an array of arguments within `${...}`. Each array item will be quoted separately and then joined by a
Expand Down

0 comments on commit 4ab61e8

Please sign in to comment.