-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
60 lines (58 loc) · 1.56 KB
/
config.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
59
60
---
cog_bundle_version: 4
name: pipewrench
description: "Miscellaneous Cog pipeline utilities"
author: Operable <[email protected]>
homepage: https://github.com/cogcmd/pipewrench
version: "0.2.1"
docker:
image: cogcmd/pipewrench
tag: "0.2.1"
commands:
for:
executable: /home/bundle/cog-command
description: "Generator function for pipeline inputs"
arguments: "<name> in <arg1> [<arg2>...]"
long_description: "Create a list of objects with the value of arg1..N as the value of the field with the given name"
examples: |
pipewrench:for x in a b c | operable:echo $x
> a
b
c
rules: [ 'allow' ]
dump:
executable: /home/bundle/cog-command
description: "Return Cog pipeline options and input"
long_description: Show the environment variables and inputs that a command would receive. Useful for debugging commands.
examples: |
pipewrench:for x in a | pipewrench:dump
options:
env:
description: Only return environment variables
type: bool
required: false
short_flag: e
input:
description: Only return STDIN content
type: bool
required: false
short_flag: i
rules: [ 'allow' ]
templates:
dump:
body: |
~each var=$results~
~if cond=$item.env~
**Environment Variables**
| Name | Value |
|------|-------|
~each var=$item.env as=e~|~$e.name~|~$e.value~|
~end~
~br~
~end~
~if cond=$item.input~
**Inputs**
~json var=$item.input~
~br~
~end~
~end~