Skip to content

Commit

Permalink
docs: mention that config file functions are unix-scoped in examples (#…
Browse files Browse the repository at this point in the history
…595)

* docs: mention that config file functions are unix-scoped in examples

* Update docs/features/config_file.md

---------

Co-authored-by: Ali Khajeh-Hosseini <[email protected]>
  • Loading branch information
hugorut and alikhajeh1 authored Dec 15, 2023
1 parent 2bafda8 commit 4bde71d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/features/config_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ The following global variables are **only** available in CI:

Config file templates support a wide range of built-in functions to make it easy for you to write config files that work for your project structure. Below you'll find a list of supported functions with detailed examples.

> Please be aware that the functions and examples provided are designed for a Unix-based system. If you are using Windows, make sure to adjust the path syntax accordingly. For instance, use backslashes `\` in paths as per Windows system requirements.

#### Filepath functions

Config file templates include the following functions to help you traverse your project structure:
Expand All @@ -413,7 +415,7 @@ Returns a list of matches that in the project directory tree that match the patt
##### Arguments:

| name | description | example |
| ------- | ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
|---------|-------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| pattern | a path pattern to one or more files or directories in your project. Keys that you wish to extract must be prefixed with `':'` | `"environment/:env/terraform.tfvars"`, `"infra/:env/:app"`, `"environment/:app/:env.tfvars"`, `":optional-parent?/:optional-child?/main.tf"` |

##### Returns:
Expand Down

0 comments on commit 4bde71d

Please sign in to comment.