@@ -534,23 +534,29 @@ Additional "magic" vairables:
534534# ### Functions
535535
536536* [Sprig template utilities](http://masterminds.github.io/sprig/) available.
537- * Custom functions:
538- * `getRootFile` (v1.2.1+) - (`{{getRootFile "myfile"}}`) get content of file with specific name in any of root
539- folders. Example :
540-
541- Current working directory : /foo/bar/xyz
542- Looking for name : .gitignore
543- Will check (and return content) :
544- /foo/bar/xyz/.gitignore
545- /foo/bar/.gitignore
546- /foo/.gitignore
547- /.gitignore
548-
549- If nothing found - `ErrNotExists` returned
550- * `findRootFile` (v1.3.2+) - (`{{findRootFile "myfile"}}`) find path to file with specific name in any of root
551- folders. Same as `getRootFile` but instead of returning content it is returning path to file.
552- * `findRootDir` (v1.3.2+) - (`{{findRootDir "mydir"}}`) find path to directory with specific name in any of root
553- folders. Same as `findRootFile` but instead of looking for file it is looking for directory.
537+ * Custom functions:
538+ * `getRootFile` (v1.2.1+) - (`{{getRootFile "myfile"}}`) get content of file with specific name in any of root
539+ folders. Example :
540+
541+ Current working directory : /foo/bar/xyz
542+ Looking for name : .gitignore
543+ Will check (and return content) :
544+ /foo/bar/xyz/.gitignore
545+ /foo/bar/.gitignore
546+ /foo/.gitignore
547+ /.gitignore
548+
549+ If nothing found - `ErrNotExists` returned
550+ * `findRootFile` (v1.3.2+) - (`{{findRootFile "myfile"}}`) find path to file with specific name in any of root
551+ folders. Same as `getRootFile` but instead of returning content it is returning path to file.
552+ * `findRootDir` (v1.3.2+) - (`{{findRootDir "mydir"}}`) find path to directory with specific name in any of root
553+ folders. Same as `findRootFile` but instead of looking for file it is looking for directory.
554+ * `findSubmatch` (v1.3.3+) - capture all regex groups with matching pattern. Example:
555+
556+ Pattern : foo[ ]+([^ ]+)
557+ Text : foo bar foo baz
558+ Returns : [bar, baz]
559+
554560
555561# ### Flow
556562
0 commit comments