Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable documentation update #2840

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/guide/core-commandlineparsing.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ match DocoptResult.tryGetArgument "-m" results with

*Note the following links are permalinks to old commits. They are intended only as examples. You are encouraged to look at the current version too, because it's likely to have been updated.*

See also: https://fake.build/guide/core-targets.html#Script-with-arguments

A more sophisticated example can be found in the fake runner: [<ins>src/app/Fake.netcore/Program.fs#L204-L259</ins>](https://github.com/fsharp/FAKE/blob/64d871f5065412fe7b233025e454ccf3b89e46d7/src/app/Fake.netcore/Program.fs#L204-L259)

Or the target module:
Expand Down
6 changes: 6 additions & 0 deletions docs/guide/core-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ Now we have the following options:

## Script with arguments

If you don't call `Target.initEnvironment()` before you use the `Environment` module,
then FAKE will only use system and inline environment variables
(e.g. Windows: `set mything=123`) instead of parsing the command line `-e` params.

If you want multiple environment arguments, you can do `-e a=1 -e b=2`.

Example:

```fsharp
Expand Down
Loading