# Example KiBot config file
kibot:
  version: 1

global:
  set_text_variables_before_output: true

variants:
  - name: 'production'
    comment: 'Production variant'
    type: ibom
    file_id: '_(production)'
    variants_blacklist: T2

  - name: 'test'
    comment: 'Test variant'
    type: ibom
    file_id: '_(test)'
    variants_blacklist: T1

  - name: 'default'
    comment: 'Default variant'
    type: ibom
    variants_blacklist: T2,T3

preflight:
  set_text_variables:
    - name: VARIANT
      text: '%V'

outputs:
  - name: 'pcb_default'
    comment: "PCB w/default variant"
    type: pcb_variant
    options:
      variant: default
      title: 'Hello %V'

  - name: 'pcb_production'
    comment: "PCB w/production variant"
    type: pcb_variant
    options:
      variant: production
      title: 'Hello %V'

  - name: 'gerber_production'
    comment: "Gerber w/production variant"
    type: gerber
    layers: ['F.Cu']
    options:
      variant: production

  - name: 'pcb_test'
    comment: "PCB w/test variant"
    type: pcb_variant
    options:
      variant: test
      title: 'Hello %V'

  - name: 'gerber_test'
    comment: "Gerber w/test variant"
    type: gerber
    layers: ['F.Cu']
    options:
      variant: test

  - name: 'gerber_default'
    comment: "Gerber w/default variant"
    type: gerber
    layers: ['F.Cu']
    options:
      variant: default

  - name: 'diff_pcb'
    comment: "PCB difference with variant"
    type: diff
    layers: ['F.Cu', 'F.Fab']
    options:
      # old: pcb_default
      # old_type: output
      old: ''
      old_type: multivar
      new: [pcb_default, pcb_production, pcb_test]
      new_type: multivar
      cache_dir: .cache
      # add_link_id: true
