Skip to content

Commit

Permalink
readme update explain flags and add license
Browse files Browse the repository at this point in the history
  • Loading branch information
speier committed Nov 24, 2020
1 parent b4f5828 commit cdffe54
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=v0.1.0
VERSION=v0.1.1

release:
@git tag -a ${VERSION} -m "Release ${VERSION}" && git push origin ${VERSION}
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,23 @@ METHOD(URL, [headers], [payload])
`[headers]`: optional

`[payload]`: optional

## CLI

The following flags are available:

`-f`: filename

`-s`: set param

For example:

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

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.

## License

[MIT](LICENSE)

0 comments on commit cdffe54

Please sign in to comment.