Skip to content

Commit

Permalink
doc: about environment substitution
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Jan 10, 2024
1 parent 8633809 commit 488b0a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/docs/usage/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ start.env = {FOO = "bar", FLASK_ENV = "development"}

Note how we use [TOML's syntax](https://github.com/toml-lang/toml) to define a composite dictionary.

!!! note "About environment variable substitution"
Variables in script specifications can be substituted in all script types. In `cmd` scripts, only `${VAR}`
syntax is supported on all platforms, however in `shell` scripts, the syntax is platform-dependent. For example,
Windows cmd uses `%VAR%` while bash uses `$VAR`.

!!! note
Environment variables specified on a composite task level will override those defined by called tasks.

Expand Down

0 comments on commit 488b0a5

Please sign in to comment.