mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 14:43:28 +00:00
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 :|
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user