Skip to content

Commit f389d8b

Browse files
committed
Add explicit commands to binary
./lightpanda serve --host ... ./lightpanda fetch https://... Makes it easier to communicate / document which command has which options. Internally added a "usage" command for displaying the usage - removing the need for error.NoError :|
1 parent 09505db commit f389d8b

File tree

2 files changed

+194
-177
lines changed

2 files changed

+194
-177
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ chmod a+x ./lightpanda
6161
### Dump an URL
6262

6363
```console
64-
./lightpanda --dump https://lightpanda.io
64+
./lightpanda fetch --dump https://lightpanda.io
6565
```
6666
```console
6767
info(browser): GET https://lightpanda.io/ http.Status.ok
@@ -73,7 +73,7 @@ info(browser): eval remote https://api.website.lightpanda.io/js/script.js: TypeE
7373
### Start a CDP server
7474

7575
```console
76-
./lightpanda --host 127.0.0.1 --port 9222
76+
./lightpanda serve --host 127.0.0.1 --port 9222
7777
```
7878
```console
7979
info(websocket): starting blocking worker to listen on 127.0.0.1:9222

0 commit comments

Comments
 (0)