Add a simple "shell" task

This commit is contained in:
Oliver Walters 2020-11-24 21:18:00 +11:00
parent e3231bbedb
commit 28333c1a21

View File

@ -102,6 +102,16 @@ def install(c):
print("Config file 'config.yaml' does not exist - copying from template.")
copyfile(CONFIG_TEMPLATE_FILE, CONFIG_FILE)
@task
def shell(c):
"""
Open a python shell with access to the InvenTree database models.
"""
manage(c, 'shell', pty=True)
@task
def superuser(c):
"""