Skip to content

Commit

Permalink
Merge pull request #907 from hairyhenderson/document-datasource-heade…
Browse files Browse the repository at this point in the history
…r-flag

Document the --datasource-header flag
  • Loading branch information
Dave Henderson authored and GitHub committed Jul 21, 2020
2 parents d6c2932 + a4ae6f4 commit 7141b8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/content/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,16 @@ A few different forms are valid:
- `mydata.json`
- This form infers the name from the file name (without extension). Only valid for files in the current directory.


### `--datasource-header`/`-H`

Provides one (or more) HTTP headers to be sent along with the matching
HTTP-based datasource. Value is in the form `alias="HeaderName: header-value"`.

Note that the `alias` does not need to map to a datasource specified in a
command-line flag, but can be used in dynamically-defined datasources (see
[`defineDatasource`](../functions/data#definedatasource)).

### `--context`/`-c`

Add a data source in `name=URL` form, and make it available in the [default context][] as `.<name>`. The special name `.` (period) can be used to override the entire default context.
Expand Down

0 comments on commit 7141b8c

Please sign in to comment.