moto-0.0.3: lib/cli_help.docs
{- $cli_help
This is the full description of the command line options supported by
'Moto.getOpts', using @Moto.File.fileRegistry@ as the registry.
Main program (here called @moto-example@):
@
Usage: moto-example COMMAND
Command line interface to migrations.
Available options:
-h,--help Show this help text
Available commands:
run Run migrations.
show-migrations Show available migrations.
check-migrations Exit immediately with status 0 if the available
migrations are compatible with the registry.
Otherwise, exit with status 1.
show-registry Show migrations registry.
clean-registry Clean a dirty migrations registry.
delete-recovery-data Delete contents from the migrations data store.
@
Subcommand @run@:
@
Usage: moto-example run --registry URI [--backwards] [--mig ID] [--no-dry-run]
Run migrations.
Available options:
--registry URI File where registry file is stored. E.g.,
file:\/\/\/var\/db\/migrations
--mig ID If specified, only consider running the migration
identified by this ID. Use multiple times for
multiple migrations.
--no-dry-run Don't just show the execution plan, run it!
-h,--help Show this help text
@
Subcommand @show-migrations@:
@
Usage: moto-example show-migrations [--dot]
Show available migrations.
Available options:
--dot Render graph in DOT (Graphviz) format.
-h,--help Show this help text
@
Subcommand @check-migrations@:
@
Usage: moto-example check-migrations --registry URI
Exit immediately with status 0 if the available migrations are compatible with
the registry. Otherwise, exit with status 1.
Available options:
--registry URI File where registry file is stored. E.g.,
file:\/\/\/var\/db\/migrations
-h,--help Show this help text
@
Subcommand @show-registry@:
@
Usage: moto-example show-registry --registry URI
Show migrations registry.
Available options:
--registry URI File where registry file is stored. E.g.,
file:\/\/\/var\/db\/migrations
-h,--help Show this help text
@
Subcommand @clean-registry@:
@
Usage: moto-example clean-registry --registry URI [--dry-run]
Clean a dirty migrations registry.
Available options:
--registry URI File where registry file is stored. E.g.,
file:\/\/\/var\/db\/migrations
--dry-run Don't clean registry, just show whether it is clean
and exit immediately with status 0 if so, otherwise
exit with status 1.
-h,--help Show this help text
@
Subcommand @delete-recovery-data@:
@
Usage: moto-example delete-recovery-data --mig ARG
Delete contents from the migrations data store.
Available options:
-h,--help Show this help text
@
-}