Last active
July 25, 2023 19:40
-
-
Save simonw/642030f1bead6663330d7fcd4dde8402 to your computer and use it in GitHub Desktop.
sqlite-utils-litecli plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[project] | |
name = "sqlite-utils-litecli" | |
version = "0.1" | |
dependencies = [ | |
"litecli" | |
] | |
[project.entry-points.sqlite_utils] | |
litecli = "sqlite_utils_litecli" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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