summaryrefslogtreecommitdiff
path: root/support/arara/source/src/test/resources/executiontests/directive-with-options/echoone.yaml
blob: 825edea9bbaabcf1781612ebcb734aacbab63ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
!config
identifier: echoone
name: Test rule for conditionals 1
commands:
  - name: The echoer
    command: >
      @{
          return getCommand('echo', 'QuackOne', interaction, synctex);
      }
arguments:
- identifier: interaction
  flag: >
    @{
        if ([ 'batchmode', 'nonstopmode', 'scrollmode',
              'errorstopmode' ].contains(parameters.interaction)) {
            return '--interaction='.concat(parameters.interaction);
        }
        else {
            throwError('The provided interaction value is not valid.');
        }
    }
- identifier: synctex
  flag: >
    @{
        isTrue(parameters.synctex, '--synctex=1', '--synctex=0')
    }
- identifier: extensions
  flag: >
    @{
        if (isList(parameters.extensions)) {
            return parameters.extensions;
        }
        else {
            throwError('I was expecting a list of extensions.');
        }
    }