diff --git a/docs/gossfile.md b/docs/gossfile.md index 0339b99f..a463c2ce 100644 --- a/docs/gossfile.md +++ b/docs/gossfile.md @@ -918,12 +918,11 @@ Available functions: `toUpper` : Changes piped input to UPPERCASE - `findStringSubmatch regex string` : Returns map[string]interface{} with the names of the parenthesized subexpressions, like `(?P[a-z])` - + {{ $regexDBrc := "\\'mysql:\\/\\/(?P[a-z0-9]+):(?P[a-z0-9]+)@localhost\\/(?Proundcube_[a-z0-9]+)\\';"}} - + {{ $rcConf := readFile /home/user/roundcube/config.inc.php | findStringSubmatch $regexDBrc }} {{ $UserDBrc := get $rcConf "login" }} {{ $PassDBrc := get $rcConf "password" }} @@ -932,7 +931,7 @@ Available functions: If not exists named parenthesized subexps, returns stringfied array string: {{ $regexDBrc := "\\'mysql:\\/\\/([a-z0-9]+):([a-z0-9]+)@localhost\\/(roundcube_[a-z0-9]+)\\';"}} - + {{ $rcConf := readFile /home/user/roundcube/config.inc.php | findStringSubmatch $regexDBrc }} {{ $UserDBrc := get $rcConf "1" }} {{ $PassDBrc := get $rcConf "2" }} @@ -940,9 +939,6 @@ Available functions: NOTE: stringfied string array begins with "1" ("0" is all the string matched) - - - !!! warning gossfiles containing text/template `{{}}` controls will no longer work with `goss add/autoadd`.