Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ You can use the combination of (INDEX, SEQID) as an unique identifier of a task.

## Example

### For UNIX/Linux

```yaml
out:
type: command
Expand All @@ -35,6 +37,26 @@ out:
type: csv
```

### For Windows

To refer Environment variables, you should use `${Env:ENVVAR}`.
For example, in powershell, you can refer `INDEX` and `SEQID` environment variables, which are defined by `embulk-output-command`, like this:

```powershell
${Env:INDEX} # refer INDEX environment variable
${Env:SEQID} # refer SEQID environment variable
```

Note that `${input}` equals to `cat -` in PowerShell.

```yaml
out:
type: command
command: ${input} > task.${Env:INDEX}.${Env:SEQID}.csv
formatter:
type: csv
```

## Build

```
Expand Down