{"html_url": "https://github.com/simonw/datasette/issues/1459#issuecomment-913218494", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1459", "id": 913218494, "node_id": "IC_kwDOBm6k_c42bpu-", "user": {"value": 9599, "label": "simonw"}, "created_at": "2021-09-05T19:58:51Z", "updated_at": "2021-09-05T19:59:15Z", "author_association": "OWNER", "body": "This idea makes sense to me.\r\n\r\nThere's actually an existing option that takes a path, called `--get` - it returns the HTML or JSON for that oath directly to the console, eg `datasette my.db --get /mydb/mytable.json`\r\n\r\nSo... one option would be to allow combining that with `-o` to open that URL in the browser:\r\n\r\n datasette my.db -o --get /mydb\r\n\r\nSo some options here are:\r\n\r\n- `datasette my.db --open-url /mydb`\r\n- `datasette my.db --open-path /mydb`\r\n- `datasette my.db --open --get /mydb`\r\n\r\nI quite like that last combination option, mainly to avoid adding even more command options.\r\n\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 988556488, "label": "suggestion: allow `datasette --open` to take a relative URL"}, "performed_via_github_app": null}