Skip to content

Commit a22e1bc

Browse files
Merge pull request #442 from karlseguin/cli_commands
Add explicit commands to binary
2 parents 3f23e07 + 9519d3f commit a22e1bc

File tree

4 files changed

+229
-180
lines changed

4 files changed

+229
-180
lines changed

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- name: run puppeteer
8686
run: |
8787
python3 -m http.server 1234 -d ./public & echo $! > PYTHON.pid
88-
./lightpanda & echo $! > LPD.pid
88+
./lightpanda serve & echo $! > LPD.pid
8989
RUNS=100 npm run bench-puppeteer-cdp > puppeteer.out || exit 1
9090
cat /proc/`cat LPD.pid`/status |grep VmHWM|grep -oP '\d+' > LPD.VmHWM
9191
kill `cat LPD.pid` `cat PYTHON.pid`

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ COPY --from=0 /browser/zig-out/bin/lightpanda /bin/lightpanda
7676

7777
EXPOSE 9222/tcp
7878

79-
CMD ["/bin/lightpanda", "--host", "0.0.0.0", "--port", "9222"]
79+
CMD ["/bin/lightpanda", "serve", "--host", "0.0.0.0", "--port", "9222"]

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)