Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
This is a request for a "convenience" feature, and only a nice to have. It's based on seeing this feature in several little command line hypertext server apps.
If you run, for example:
datasette.exe serve --open "mydb.s3db"
I would like it if default browser is launched, at the URL that is being served.
The angular cli does this, for example
ng serve --open #see https://angular.io/cli/serve
...as does my usual mini web server of choice when inspecting local static files....
npx http-server -o # see https://www.npmjs.com/package/http-server
Just a tiny thing. Love your work!
The text was updated successfully, but these errors were encountered:
I like this. It could work with the --root option too and automatically sign you in as the root user.
Sorry, something went wrong.
The Python standard library has a module for this: https://docs.python.org/3/library/webbrowser.html
Oh wow oh wow. Thanks so much Simon. In an astoundingly rough week, this is a shining jewel. 🤣
Idea: if a database only has a single table, this could open straight to /db/table. If it has multiple tables but a single database it could open straight to /db.
Refs #891, #970, #978, #980, #981
Refs #1001, #514, #891, #943, #969, #970, #978, #980, #996, #997
No branches or pull requests