MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / _add_makemigrations_parser

Function _add_makemigrations_parser

tortoise/cli/cli.py:719–728  ·  view source on GitHub ↗
(subparsers: argparse._SubParsersAction)

Source from the content-addressed store, hash-verified

717
718
719def _add_makemigrations_parser(subparsers: argparse._SubParsersAction) -> None:
720 makemigrations_parser = subparsers.add_parser(
721 "makemigrations", help="Create new migrations from model changes."
722 )
723 makemigrations_parser.add_argument("app_labels", nargs="*")
724 makemigrations_parser.add_argument(
725 "--empty", action="store_true", help="Create an empty migration."
726 )
727 makemigrations_parser.add_argument("-n", "--name", help="Use this name for the migration file.")
728 makemigrations_parser.set_defaults(func=_run_makemigrations)
729
730
731def _add_migrate_parser(subparsers: argparse._SubParsersAction) -> None:

Callers 1

_build_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…