-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.yaml
39 lines (36 loc) · 1.13 KB
/
example.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
randomseed: 290120200138 # Optional Number seed for all random
randoms:
secret1:
source: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&*()"
length: 20
secret2:
source: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&*()"
length: 20
remember: true # Between files, in same file always.
vars:
v1 : "I am var 1"
v2 : "I am var 2"
# Actions are executed by array order
# Variable\randoms will replace "~{v1}" by v1
actions:
- path: "./source.txt"
text:
"SOME_VAR" : "<Simple Text \"Replace\">"
DOUBLE_VAR : "~{v1}" # Var are evaluated after text
regex:
"[0-9]{9,12}": "<Telephone Cencored>"
vars: # also, Env variables
- v1
- v2
- v3 # Won't find
- env1 # Will be read from env if exists
randoms:
- secret1
- secret2
- path: "./source2.txt"
vars:
- v1
randoms:
- secret1
- secret2
- path: "./*.txt" # pattern supported by glob.glob() function