Skip to content

Commit

Permalink
variables.md: environment variable default from a file
Browse files Browse the repository at this point in the history
Closes #519
  • Loading branch information
bagder committed Dec 19, 2024
1 parent d4f8665 commit 6c59793
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmdline/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ Instead, let's use `dummy` as a default value if `%USER` does not exist:
--variable %USER=dummy \
--expand-url "https://example.com/api/{{USER}}/method"

Or get the default contents from a local file:

curl \
--variable %USER@file \
--expand-url "https://example.com/api/{{USER}}/method"

## Expand `--variable`

The `--variable` option itself can also be expanded, which allows you to
Expand Down

0 comments on commit 6c59793

Please sign in to comment.