Skip to content

Commit

Permalink
docs: added exmaple
Browse files Browse the repository at this point in the history
  • Loading branch information
simonecorsi committed Oct 26, 2023
1 parent 04eadd6 commit c6b6e16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Supports Node.js `>=14.0.0`, if you are a Node.js `v12` user refer to `[email protected].
- [Dats Mock](#dats-mock)
- [CLI Interface](#cli-interface)
* [CLI Usage](#cli-usage)
* [datsrc](#datsrc)
* [Pre-compiled binary](#pre-compiled-binary)
- [Benchmarks](#benchmarks)
- [Powered Apps](#powered-apps)
Expand Down Expand Up @@ -266,13 +267,16 @@ dats --help
#
# If unsure of output run the command prepended with `DRY_RUN=1`
```

### datsrc

Every command flag can also be specified in JSON format in the file `.datsrc`, the process at runtime will search it in the current working directory and merge both file config and flags before running!

```json
{
"prefix": "my_metric_prefix"
"host": "123.123.123.123",
"port": "1234",
"prefix": "my_metric_prefix"
}
```

Expand Down

0 comments on commit c6b6e16

Please sign in to comment.