Skip to content

Commit

Permalink
Add function to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg authored Dec 17, 2024
1 parent 5083d8d commit 6329796
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ Run `snap install shadowtest` and the service will be exposed for you on port **
### Run using docker

Run `docker run -p 8080:8080 -d guamulo/shadowtest` to get it running with docker on port **8080**

### From the terminal

Add the following function to your **bashrc** to query the service from your terminal

```bash
function shadowtest(){
curl --silent localhost:51292/v2/test -d "address=$1" | jq
}
```

0 comments on commit 6329796

Please sign in to comment.