summaryrefslogtreecommitdiff
path: root/cli/app/commands/biggan/fetch.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-07 16:51:38 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-07 16:51:38 +0100
commit151ade996065ad02c2d96b723c94589066491d54 (patch)
treeb89377beed63d343ba44a833ade7c483a2b8d78c /cli/app/commands/biggan/fetch.py
parent7ea77a044ca9de9d8089bf382640fb4a7bfabc0f (diff)
upload bytesio object to cortex
Diffstat (limited to 'cli/app/commands/biggan/fetch.py')
-rw-r--r--cli/app/commands/biggan/fetch.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/app/commands/biggan/fetch.py b/cli/app/commands/biggan/fetch.py
new file mode 100644
index 0000000..94117c9
--- /dev/null
+++ b/cli/app/commands/biggan/fetch.py
@@ -0,0 +1,13 @@
+import click
+
+from app.utils.cortex_utils import fetch_cortex_folder
+
+@click.command('')
+@click.option('-i', '--folder_id', 'opt_folder_id', type=int,
+ help='Folder ID to fetch')
+@click.pass_context
+def cli(ctx, opt_folder_id):
+ """
+ Fetch JSON from the server
+ """
+ fetch_cortex_folder(opt_folder_id)