Skip to content

Commit

Permalink
update flag section in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
speier committed Nov 24, 2020
1 parent 5c45b99 commit 05125b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,15 @@ METHOD(URL, [headers], [payload])

The following flags are available:

`-f`: filename

`-s`: set param
`-e`: set env var, key=value or filename (repeatable)

For example:

```sh
$ hrun -f foo.js -s a=1 b=2
$ hrun -e=1 e=2 foo.js
```

Filename `-f` is required, `-s` is optional to set key value params, these params alongside the host environment variables will be available for the script on the `env` object.
Flag `-e` is repeatable and can be key=value or a filename to load env vars, will be available on `env` object from the scripts.

## License

Expand Down

0 comments on commit 05125b9

Please sign in to comment.