Skip to content

Commit eb410c1

Browse files
authored
move shell session blocks to appropriate syntax (#289)
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.
1 parent 9fe8a33 commit eb410c1

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,14 @@ let _ =
125125

126126
compile and run with:
127127

128-
```sh
128+
```sh-session
129129
$ dune exec examples/hello_world.exe &
130130
```
131131

132-
then call
133-
134-
```sh
135-
curl http://localhost:3000/person/john_doe/42
136-
```
137-
138-
You should see the greeting
132+
then make a request to be greeted with a JSON response
139133

140-
```json
134+
```sh-session
135+
$ curl http://localhost:3000/person/john_doe/42
141136
{"name":"john_doe","age":42}
142137
```
143138

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

201-
```
196+
```sh-session
202197
# run in debug mode on port 9000
203198
$ dune exec example/simple_middleware/main.exe -- -p 9000 -d
204199
```

0 commit comments

Comments
 (0)