-
Notifications
You must be signed in to change notification settings - Fork 4
/
scenario_1.yaml
49 lines (49 loc) · 1.15 KB
/
scenario_1.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
title: a beautiful movie
options:
width: 80
height: 24
wait: true
typing_delay_s: 0.1
reading_delay_s: 1
pre-run:
- pause: 1
- new_env: 'docker run -it --rm --name ubuntu ubuntu bash'
wait_check_cmd: 'docker exec ubuntu pgrep -P 1'
- command: clear
- pause: 1
post-run:
- delete_env: 'exit'
- pause: 1
scenes:
- pause: 1
- command: ls
- message: 'Here is a list of files. Nice!'
- pause: 3
- command: sleep 5
- message: 'Great Scott! We can wait for the end of command execution!'
- command: sleep 7
options:
wait: false
- message: 'Or not :) then you need to manually create pauses'
options:
delete: true
reading_delay_s: 2
- command: 'apt-get update'
- command: 'apt-get -yq install vim'
- pause: 5
- command: vim
options:
wait: false
- key: 'i'
- message: 'Message action works inside apps too!'
options:
delete: false
- key: 'Escape'
- command: \:q!
- message: 'You can override global options per command. For example typing delay'
options:
typing_delay_s: 0.03
reading_delay_s: 2
- message: 'I hope you enjoyed :)'
options:
reading_delay_s: 2