# Authoring example: replace YOUR_OUTPUT_DATASET_ID with an authorized binding.
# Submission also requires client credentials and granted organization/project context.
version: 1
name: fanout-gather
output_dataset: YOUR_OUTPUT_DATASET_ID

levels:
  batch:
    iter: for_each
    values: [a, b]

files:
  part: {level: batch, type: txt}
  whole: {type: txt}

commands:
  - name: part
    level: batch
    env: _none
    out: part
    run: echo ${batch} > ${part}

  - name: whole
    env: _none
    in: part
    out: whole
    run: cat ${part} > ${whole}
