aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-05-26 13:21:33 +0300
committerFrederick Muriuki Muriithi2023-05-26 13:21:33 +0300
commitfe075ee5c8852fddc0a229d1b90d77bff9dca003 (patch)
tree0c60079bf5b6eca22e75a63540b4ab22936af78f /main.py
parent88d4f61e4df7dcffaaed083989c75ee9ad4a48a4 (diff)
downloadgenenetwork3-fe075ee5c8852fddc0a229d1b90d77bff9dca003.tar.gz
Document CLI Utility Commands
Document some CLI utility commands useful for development and for supporting the operation of the GN3 app.
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.py b/main.py
index 4a65db4..b6b323c 100644
--- a/main.py
+++ b/main.py
@@ -108,6 +108,12 @@ def assign_system_admin(user_id: uuid.UUID):
file=sys.stderr)
sys.exit(1)
+@app.cli.command()
+def make_data_public():
+ """Make existing data that is not assigned to any group publicly visible."""
+ from scripts.migrate_existing_data import entry
+ entry(app.config["AUTH_DB"], app.config["SQL_URI"])
+
##### END: CLI Commands #####
if __name__ == '__main__':