{"html_url": "https://github.com/simonw/sqlite-utils/issues/569#issuecomment-1646654275", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/569", "id": 1646654275, "node_id": "IC_kwDOCGYnMM5iJfND", "user": {"value": 9599, "label": "simonw"}, "created_at": "2023-07-22T19:19:35Z", "updated_at": "2023-07-22T19:19:35Z", "author_association": "OWNER", "body": "Documentation: https://sqlite-utils.datasette.io/en/latest/plugins.html#register-commands-cli", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1816852402, "label": "register_command plugin hook"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/569#issuecomment-1646645990", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/569", "id": 1646645990, "node_id": "IC_kwDOCGYnMM5iJdLm", "user": {"value": 9599, "label": "simonw"}, "created_at": "2023-07-22T18:29:40Z", "updated_at": "2023-07-22T18:30:16Z", "author_association": "OWNER", "body": "Example plugin: https://gist.github.com/simonw/ccfbbf9b384a38ac7535b01849f57daf\r\n\r\n```bash\r\nsqlite-utils install https://gist.github.com/simonw/ccfbbf9b384a38ac7535b01849f57daf/archive/cd7960e476c441a3c5f619e2a44a641a39b91467.zip\r\n```\r\n`pyproject.toml`:\r\n```toml\r\n[project]\r\nname = \"sqlite-utils-hello-world\"\r\nversion = \"0.1\"\r\n\r\n[project.entry-points.sqlite_utils]\r\nhello_world = \"sqlite_utils_hello_world\"\r\n```\r\n`sqlite_utils_hello_world.py`:\r\n```python\r\nimport click\r\nimport sqlite_utils\r\n\r\n\r\n@sqlite_utils.hookimpl\r\ndef register_commands(cli):\r\n @cli.command()\r\n def hello_world():\r\n \"Say hello world\"\r\n click.echo(\"Hello world!\")\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1816852402, "label": "register_command plugin hook"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/569#issuecomment-1646643676", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/569", "id": 1646643676, "node_id": "IC_kwDOCGYnMM5iJcnc", "user": {"value": 9599, "label": "simonw"}, "created_at": "2023-07-22T18:18:24Z", "updated_at": "2023-07-22T18:18:24Z", "author_association": "OWNER", "body": "Here's where I added that to LLM: https://github.com/simonw/llm/commit/a396950f7934e82a9968703bb3ce9ab7ab62f7f8\r\n\r\n- https://github.com/simonw/llm/issues/49", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1816852402, "label": "register_command plugin hook"}, "performed_via_github_app": null}