datasette / datasette-build

Build a directory full of files into a SQLite database
Apache License 2.0
12 stars 0 forks source link

Initial CLI framework - datasette-build command, optional datasette build if Datasette is installed #2

Closed simonw closed 8 months ago

simonw commented 8 months ago

Part of:

simonw commented 8 months ago

I can use this pattern: https://til.simonwillison.net/datasette/cli-tool-that-is-also-a-plugin

simonw commented 8 months ago
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.