publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349)
This change introduces a new plugin hook, publish_subcommand, which can be
used to implement new subcommands for the "datasette publish" command family.
I've used this new hook to refactor out the "publish now" and "publish heroku"
implementations into separate modules. I've also added unit tests for these
two publishers, mocking the subprocess.call and subprocess.check_output
functions.
As part of this, I introduced a mechanism for loading default plugins. These
are defined in the new "default_plugins" list inside datasette/app.py
Closes #217 (Plugin support for datasette publish)
Closes #348 (Unit tests for "datasette publish")
Refs #14, #59, #102, #103, #146, #236, #347
2018-07-26 05:15:59 +00:00
|
|
|
$ datasette publish now --help
|
2018-07-11 02:04:13 +00:00
|
|
|
|
publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349)
This change introduces a new plugin hook, publish_subcommand, which can be
used to implement new subcommands for the "datasette publish" command family.
I've used this new hook to refactor out the "publish now" and "publish heroku"
implementations into separate modules. I've also added unit tests for these
two publishers, mocking the subprocess.call and subprocess.check_output
functions.
As part of this, I introduced a mechanism for loading default plugins. These
are defined in the new "default_plugins" list inside datasette/app.py
Closes #217 (Plugin support for datasette publish)
Closes #348 (Unit tests for "datasette publish")
Refs #14, #59, #102, #103, #146, #236, #347
2018-07-26 05:15:59 +00:00
|
|
|
Usage: datasette publish now [OPTIONS] [FILES]...
|
2018-07-11 02:04:13 +00:00
|
|
|
|
|
|
|
Options:
|
|
|
|
-m, --metadata FILENAME Path to JSON file containing metadata to publish
|
|
|
|
--extra-options TEXT Extra options to pass to datasette serve
|
|
|
|
--branch TEXT Install datasette from a GitHub branch e.g. master
|
|
|
|
--template-dir DIRECTORY Path to directory containing custom templates
|
|
|
|
--plugins-dir DIRECTORY Path to directory containing custom plugins
|
2018-07-24 16:00:10 +00:00
|
|
|
--static STATIC MOUNT mountpoint:path-to-directory for serving static files
|
2018-07-11 02:04:13 +00:00
|
|
|
--install TEXT Additional packages (e.g. plugins) to install
|
|
|
|
--version-note TEXT Additional note to show on /-/versions
|
|
|
|
--title TEXT Title for metadata
|
|
|
|
--license TEXT License label for metadata
|
|
|
|
--license_url TEXT License URL for metadata
|
|
|
|
--source TEXT Source label for metadata
|
|
|
|
--source_url TEXT Source URL for metadata
|
publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349)
This change introduces a new plugin hook, publish_subcommand, which can be
used to implement new subcommands for the "datasette publish" command family.
I've used this new hook to refactor out the "publish now" and "publish heroku"
implementations into separate modules. I've also added unit tests for these
two publishers, mocking the subprocess.call and subprocess.check_output
functions.
As part of this, I introduced a mechanism for loading default plugins. These
are defined in the new "default_plugins" list inside datasette/app.py
Closes #217 (Plugin support for datasette publish)
Closes #348 (Unit tests for "datasette publish")
Refs #14, #59, #102, #103, #146, #236, #347
2018-07-26 05:15:59 +00:00
|
|
|
-n, --name TEXT Application name to use when deploying
|
|
|
|
--force Pass --force option to now
|
2019-01-02 05:14:46 +00:00
|
|
|
--token TEXT Auth token to use for deploy
|
|
|
|
--alias TEXT Desired alias e.g. yoursite.now.sh
|
publish_subcommand hook + default plugins mechanism, used for publish heroku/now (#349)
This change introduces a new plugin hook, publish_subcommand, which can be
used to implement new subcommands for the "datasette publish" command family.
I've used this new hook to refactor out the "publish now" and "publish heroku"
implementations into separate modules. I've also added unit tests for these
two publishers, mocking the subprocess.call and subprocess.check_output
functions.
As part of this, I introduced a mechanism for loading default plugins. These
are defined in the new "default_plugins" list inside datasette/app.py
Closes #217 (Plugin support for datasette publish)
Closes #348 (Unit tests for "datasette publish")
Refs #14, #59, #102, #103, #146, #236, #347
2018-07-26 05:15:59 +00:00
|
|
|
--spatialite Enable SpatialLite extension
|
2018-07-11 02:04:13 +00:00
|
|
|
--help Show this message and exit.
|