-
Notifications
You must be signed in to change notification settings - Fork 0
/
Trotfile.toml
31 lines (28 loc) · 913 Bytes
/
Trotfile.toml
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
# TOML files can have comments!
[env]
WORLD='World'
[actions]
toml='echo This is from Trotfile.toml'
hello='echo Hello World!'
cl='echo Command Line: $*'
env='echo The env is the $WORLD!'
err='exit 1'
ok='exit 0'
group=['hello','env']
alias=['hello']
repl='python3'
pwd='pwd'
sleep='sleep 10'
overshadow="echo Overshadow from Trotfile.toml"
multiline='''echo "1"
echo "2"
echo "3"
'''
sh={ shell='sh', action='echo "- sh: $*"' }
bash={ shell='bash', action='echo "- bash: $*"' }
python2={ shell='python2', action='import sys;print "- python2:", sys.argv[2:]' }
python3={ shell='python3', action='import sys;print("- python3:", sys.argv[2:])' }
perl={ shell='perl', action='print "- perl: ", join(" ", @ARGV), "\n";' }
node={ shell='node', action='console.log(`- node:`, process.argv.slice(3));' }
# badshell should fail, BASICA is not a valid shell type.
badshell={ shell='BASICA', action='10 PRINT "Hello"' }