-
Notifications
You must be signed in to change notification settings - Fork 127
/
cwd.toml
executable file
·39 lines (33 loc) · 958 Bytes
/
cwd.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
31
32
33
34
35
36
37
38
39
[tasks.env]
script = '''
echo CARGO_MAKE_CURRENT_TASK_NAME: ${CARGO_MAKE_CURRENT_TASK_NAME}
echo CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE: ${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE}
echo CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY: ${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY}
'''
[tasks.cwd]
command = "pwd"
condition_script = ["echo pwd during condition:", "pwd"]
install_script = '''
echo pwd during installation:
pwd
'''
[tasks.change-cwd]
command = "pwd"
cwd = "./examples/files"
condition_script = ["echo pwd during condition:", "pwd"]
install_script = '''
echo pwd during installation:
pwd
'''
[tasks.makefile-cwd]
command = "pwd"
cwd = "${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY}"
condition_script = ["echo pwd during condition:", "pwd"]
install_script = '''
echo pwd during installation:
pwd
'''
[tasks.back-again]
alias = "cwd"
[tasks.all]
dependencies = ["env", "cwd", "change-cwd", "makefile-cwd", "back-again"]