Skip to content

Commit

Permalink
Add explicit commands to binary
Browse files Browse the repository at this point in the history
./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 :|
  • Loading branch information
karlseguin committed Feb 21, 2025
1 parent 09505db commit ae833e4
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 177 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ chmod a+x ./lightpanda
### Dump an URL

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

```console
./lightpanda --host 127.0.0.1 --port 9222
./lightpanda serve --host 127.0.0.1 --port 9222
```
```console
info(websocket): starting blocking worker to listen on 127.0.0.1:9222
Expand Down
Loading

0 comments on commit ae833e4

Please sign in to comment.