rich serve · a program in a browser tab
Screenshots
❯ rich serve -- todo | tee serve.log & sleep 1 [1] 23339 Serving todo at http://127.0.0.1:8080/?token=7336474ec2ff4af3244a7cfa709184f5 ❯
❯ rich serve -- todo | tee serve.log & sleep 1 [1] 23339 Serving todo at http://127.0.0.1:8080/?token=7336474ec2ff4af3244a7cfa709184f5 ❯ url=$(grep -o 'http://[^ ]*' serve.log) ❯ curl -s http://127.0.0.1:8080/ Open the address the server printed when it started, with its token. ❯ curl -s "$url" | grep -o '<title>.*</title>' <title>todo</title> ❯ session http://127.0.0.1:8080 HTTP/1.1 101 Switching Protocols ❯ session https://elsewhere.example HTTP/1.1 403 Forbidden ❯