-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshortcommands-example.yml
38 lines (38 loc) · 1.02 KB
/
shortcommands-example.yml
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
shortcommands:
- name: Test
commands:
- name: test
description: This will fail midway through the do sequence
do:
- ls ~
- rm ~/test-acat.txt
- ls ~
- name: test2
description: This will not fail and will execute all steps correctly
do:
- ls ~
- echo "Test" > ~/test-cat.txt
- ls ~
- cat ~/test-cat.txt
- rm ~/test-cat.txt
- ls ~
- name: test3
description: This will create a test file in the current directory and then remove it
cwd: .
do:
- ls
- echo "Test" > test-cat.txt
- ls
- cat test-cat.txt
- rm test-cat.txt
- ls
- name: test4
description: This will create a test file in the home directory of the user and then remove it
cwd: "~"
do:
- ls
- echo "Test" > test-cat.txt
- ls
- cat test-cat.txt
- rm test-cat.txt
- ls