Skip to content

Instantly share code, notes, and snippets.

@simonw
Last active July 25, 2023 19:40
Show Gist options
  • Save simonw/642030f1bead6663330d7fcd4dde8402 to your computer and use it in GitHub Desktop.
Save simonw/642030f1bead6663330d7fcd4dde8402 to your computer and use it in GitHub Desktop.
sqlite-utils-litecli plugin
[project]
name = "sqlite-utils-litecli"
version = "0.1"
dependencies = [
"litecli"
]
[project.entry-points.sqlite_utils]
litecli = "sqlite_utils_litecli"
from sqlite_utils import hookimpl
from litecli.main import cli as litecli_cli
@hookimpl
def register_commands(cli):
print("registering")
cli.add_command(litecli_cli, name="litecli")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment