Skip to content

Instantly share code, notes, and snippets.

@simonw
Created July 22, 2023 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simonw/ccfbbf9b384a38ac7535b01849f57daf to your computer and use it in GitHub Desktop.
Save simonw/ccfbbf9b384a38ac7535b01849f57daf to your computer and use it in GitHub Desktop.
sqlite-utils hello world plugin
[project]
name = "sqlite-utils-hello-world"
version = "0.1"
[project.entry-points.sqlite_utils]
hello_world = "sqlite_utils_hello_world"
import click
import sqlite_utils
@sqlite_utils.hookimpl
def register_commands(cli):
@cli.command()
def hello_world():
"Say hello world"
click.echo("Hello world!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment