Skip to content

Commit

Permalink
move shell session blocks to appropriate syntax
Browse files Browse the repository at this point in the history
One of these script was mislabled at `shell` when it wasn’t a shell
script but a shell session. The following block while it is technically
JSON, is more appropriately the stdout from cURL in that shell session.
  • Loading branch information
toastal committed Dec 14, 2022
1 parent 24caae6 commit 97f8b41
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,14 @@ let _ =

compile and run with:

```sh
``` sh-session
$ dune exec examples/hello_world.exe &
```

then call

```sh
curl http://localhost:3000/person/john_doe/42
```

You should see the greeting
then make a request to be greeted with a JSON response

```json
``` sh-session
$ curl http://localhost:3000/person/john_doe/42
{"name":"john_doe","age":42}
```

Expand Down Expand Up @@ -198,7 +193,7 @@ Here we also use the ability of Opium to generate a cmdliner term to run your
app. Run your executable with `--help` to see the options that are available to you.
For example:

```
```sh-session
# run in debug mode on port 9000
$ dune exec example/simple_middleware/main.exe -- -p 9000 -d
```

0 comments on commit 97f8b41

Please sign in to comment.