From 151ade996065ad02c2d96b723c94589066491d54 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 7 Jan 2020 16:51:38 +0100 Subject: upload bytesio object to cortex --- cli/app/commands/biggan/fetch.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cli/app/commands/biggan/fetch.py (limited to 'cli/app/commands/biggan/fetch.py') 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) -- cgit v1.2.3-70-g09d2