This commit is contained in:
2024-12-30 08:01:17 +01:00
parent dfafeecf2c
commit 7894f7d420
218 changed files with 8981 additions and 20 deletions

View File

@@ -0,0 +1,31 @@
#!/usr/bin/env -S v -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.core.playbook
import freeflowuniverse.herolib.data.paramsparser
import os
const testpath = os.dir(@FILE) + '/data'
ap := playbook.new(path: testpath)!
mut test := map[string]string{}
test['root'] = 'YEH'
test['roott'] = 'YEH2'
for action in ap.actions {
// action.params.replace(test)
mut p := action.params
p.replace(test)
println(p)
}
txt := '
this is a text \${aVAR}
this is a text \${aVAR}
\${A}
'
// println(txt)
// println(params.regexfind(txt))