Closed simonw closed 8 months ago
I can use this pattern: https://til.simonwillison.net/datasette/cli-tool-that-is-also-a-plugin
datasette-build --help
Usage: datasette-build [OPTIONS] DB_PATH DIRECTORY_PATH
Build a directory full of files into a SQLite database
Options:
--help Show this message and exit.
And with Datasette installed:
datasette build --help
Usage: datasette build [OPTIONS] DB_PATH DIRECTORY_PATH
Build a directory full of files into a SQLite database
Options:
--help Show this message and exit.
Part of:
1