mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
register_commands() plugin hook, closes #1449
This commit is contained in:
parent
3655bb49a4
commit
30c18576d6
4 changed files with 109 additions and 1 deletions
|
|
@ -595,6 +595,9 @@ def serve(
|
|||
uvicorn.run(ds.app(), **uvicorn_kwargs)
|
||||
|
||||
|
||||
pm.hook.register_commands(cli=cli)
|
||||
|
||||
|
||||
async def check_databases(ds):
|
||||
# Run check_connection against every connected database
|
||||
# to confirm they are all usable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue