mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add a simple "shell" task
This commit is contained in:
parent
e3231bbedb
commit
28333c1a21
10
tasks.py
10
tasks.py
@ -102,6 +102,16 @@ def install(c):
|
|||||||
print("Config file 'config.yaml' does not exist - copying from template.")
|
print("Config file 'config.yaml' does not exist - copying from template.")
|
||||||
copyfile(CONFIG_TEMPLATE_FILE, CONFIG_FILE)
|
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
|
@task
|
||||||
def superuser(c):
|
def superuser(c):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user