-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.cfg.lua
38 lines (34 loc) · 1.08 KB
/
example.cfg.lua
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
-- load this config script and execute with bash helper (or loader.lua)
loader.log("message from main config script")
config =
{
value="this variable is not selected for export, see example.bash for details",
sub=
{
number1=123,
number2="123",
string="123x",
multiline_string="line1\nline2\nline3",
non_latin_string="Съешь еще этих мягких мексиканских кактусов, да выпей текилы",
problematic_string=" $ $$ & && \\ - [1] \\\\ - [2] \\\\\\ - [3] ! !! [ [[ ] ]] ( (( ) )) ' '' \" \"\" ` `` \\n \\t \\r / // /// ? ?? !",
sub=
{
message="another message",
},
lua_v1=loader.lua_version[1],
lua_v2=loader.lua_version[2],
lua_v3=loader.lua_version[3],
lua_num=loader.lua_version.num,
},
paths=
{
tempdir=loader.tmpdir,
workdir=loader.workdir,
dynpath=loader.workdir .. "file",
tempdir_raw=loader.tmpdir_raw,
workdir_raw=loader.workdir_raw,
dynpath_raw=loader.workdir_raw .. loader.slash .. "file",
}
}
-- add yet another value
config.sub.sub.message2="yet " .. config.sub.sub.message