-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.yaml
58 lines (58 loc) · 1.46 KB
/
config-example.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
job_root_dir: /tmp/jobs
destination_picker: bartender.picker:pick_first
applications:
wc:
command_template: wc README.md
upload_needs:
- README.md
count:
command_template: >
{% set flag = {
'lines': '-l',
'words': '-w',
'chars': '-m',
'bytes': '-c',
}[what] -%}
wc {{ flag|q }} README.md > count.txt
upload_needs:
- README.md
summary: Count in README.md
description: Count the number of lines, words, chars or bytes in a file called README.md in a uploaded zip file.
input_schema:
additionalProperties: false
type: object
properties:
what:
type: string
enum: [lines, words, chars, bytes]
description: What to count
default: lines
du:
command_template: du -hs . > du.txt
destinations:
local:
scheduler:
type: memory
slots: 1
filesystem:
type: local
interactive_applications:
count:
command_template: >
{% set flag = {
'lines': '-l',
'words': '-w',
'chars': '-m',
'bytes': '-c',
}[what] -%}
cat README.md | wc {{ flag|q }} > README.md.count
description: Count the number of lines, words, chars or bytes in README.md file.
job_application: wc
input_schema:
additionalProperties: false
type: object
properties:
what:
type: string
enum: [lines, words, chars, bytes]
default: lines