github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/1538#issuecomment-981856895 | https://api.github.com/repos/simonw/datasette/issues/1538 | 981856895 | IC_kwDOBm6k_c46hfJ_ | 9599 | 2021-11-29T17:32:44Z | 2021-11-29T17:32:44Z | OWNER | TIL: https://til.simonwillison.net/datasette/reuse-click-for-register-commands | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1066288689 | |
https://github.com/simonw/datasette/issues/1538#issuecomment-981852280 | https://api.github.com/repos/simonw/datasette/issues/1538 | 981852280 | IC_kwDOBm6k_c46heB4 | 9599 | 2021-11-29T17:27:12Z | 2021-11-29T17:27:12Z | OWNER | Thanks to https://stackoverflow.com/a/45514541/6083 I found the right pattern: ```python from datasette import hookimpl from git_history.cli import cli as git_history_cli @hookimpl def register_commands(cli): cli.add_command(git_history_cli, name="git-history") ``` I think this is a little bit too obscure to add to the Datasette documentation - I'll turn it into a TIL instead. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1066288689 | |
https://github.com/simonw/datasette/issues/1538#issuecomment-981849494 | https://api.github.com/repos/simonw/datasette/issues/1538 | 981849494 | IC_kwDOBm6k_c46hdWW | 9599 | 2021-11-29T17:23:52Z | 2021-11-29T17:23:52Z | OWNER | Just trying to use `git_history_file` produces this error: > `TypeError: Attempted to convert a callback into a command twice.` | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1066288689 |