{"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-339395551", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 339395551, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTM5NTU1MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-25T16:49:32Z", "updated_at": "2017-10-25T16:49:32Z", "author_association": "OWNER", "body": "Simplest implementation will be to create a temporary directory somewhere, copy in a Dockerfile and the databases and run \u201cnow\u201d in it.\r\n\r\nIdeally I can use symlinks rather than copying potentially large database files around.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-339514819", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 339514819, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTUxNDgxOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-26T00:35:46Z", "updated_at": "2017-10-26T00:35:46Z", "author_association": "OWNER", "body": "I\u2019m going to have a single command-line app that does everything.\r\n\r\nName to be decided - options include dataset, stateless, datasite (I quite like that - it reflects SQLite and the fact that you create a website)", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-339515822", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 339515822, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTUxNTgyMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-26T00:43:34Z", "updated_at": "2017-10-26T00:43:34Z", "author_association": "OWNER", "body": "datasite .\r\n\r\n- starts web app in current directory, serving all DB files\r\n\r\ndatasite . -p 8001\r\n\r\n- serves on custom port\r\n\r\ndatasite blah.db blah2.db\r\n\r\n- serves specified files\r\n\r\nYou can\u2019t specify more than one directory. You can specify as many files as you like. If you specify two files with different oaths but the same name then they must be accessed by hash.\r\n\r\ndatasite publish .\r\n\r\n- publishes current directory to the internet! Uses now by default, if it detects it on your path. Other publishers will be eventually added as plugins.\r\n\r\ndatasite publish http://path-to-db.db\r\n\r\n- publishes a DB available at a URL. Works by constructing the Dockerfile with wget calls in it.\r\n\r\ndatasite blah.db -m metadata.json\r\n\r\nIf you specify a directory it looks for metadata.json in that directory. Otherwise you can pass an explicit metadata file oath with -m or \u2014metadata", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-339516032", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 339516032, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTUxNjAzMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-26T00:44:52Z", "updated_at": "2017-10-26T00:44:52Z", "author_association": "OWNER", "body": "Another potential name: datapi ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-339517846", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 339517846, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTUxNzg0Ng==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-26T00:58:39Z", "updated_at": "2017-10-26T00:58:39Z", "author_association": "OWNER", "body": "I\u2019m going to use Click for this\r\n\r\nhttp://nvie.com/posts/writing-a-cli-in-python-in-under-60-seconds/\r\nhttps://kushaldas.in/posts/building-command-line-tools-in-python-with-click.html", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-339724700", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 339724700, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTcyNDcwMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-26T16:35:20Z", "updated_at": "2017-10-26T16:35:20Z", "author_association": "OWNER", "body": "Here\u2019s how to make the \u201cserve\u201d subcommand the default if it is called with no arguments:\r\n\r\n @click.group(invoke_without_command=True)\r\n def serve():\r\n # ...", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-339891755", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 339891755, "node_id": "MDEyOklzc3VlQ29tbWVudDMzOTg5MTc1NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-27T07:10:53Z", "updated_at": "2017-10-27T07:10:53Z", "author_association": "OWNER", "body": "Deploys to Now aren't working at the moment - they aren't showing the uploaded databases, because I've broken the path handling somehow. I need to do a bit more work here.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-340561577", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 340561577, "node_id": "MDEyOklzc3VlQ29tbWVudDM0MDU2MTU3Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-10-30T19:43:40Z", "updated_at": "2017-10-30T19:43:40Z", "author_association": "OWNER", "body": "http://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/quickstart.html describes how to package this for PyPI", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-341945420", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 341945420, "node_id": "MDEyOklzc3VlQ29tbWVudDM0MTk0NTQyMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-05T02:55:07Z", "updated_at": "2017-11-05T02:55:07Z", "author_association": "OWNER", "body": "To simplify things a bit, I'm going to require that every database is explicitly listed in the command line. I won't support \"serve everything in this directory\" for the moment.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-342030075", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 342030075, "node_id": "MDEyOklzc3VlQ29tbWVudDM0MjAzMDA3NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-06T02:25:48Z", "updated_at": "2017-11-06T02:25:48Z", "author_association": "OWNER", "body": "... I tried that, I don't like it. I'm going to bring back \"directory serving\" by allowing you to pass a directory as an argument to `datasite` (including `datasite .`). I may even make `.` the default if you don't provide anything at all.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/40#issuecomment-343646740", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/40", "id": 343646740, "node_id": "MDEyOklzc3VlQ29tbWVudDM0MzY0Njc0MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-11T07:27:33Z", "updated_at": "2017-11-11T07:27:33Z", "author_association": "OWNER", "body": "I'm happy with this now that I've implemented the publish command in #26 ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 268470572, "label": "Implement command-line tool interface"}, "performed_via_github_app": null}