summaryrefslogtreecommitdiff
path: root/cli/app/commands/cortex/upload.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/commands/cortex/upload.py')
-rw-r--r--cli/app/commands/cortex/upload.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/app/commands/cortex/upload.py b/cli/app/commands/cortex/upload.py
new file mode 100644
index 0000000..c1b0a46
--- /dev/null
+++ b/cli/app/commands/cortex/upload.py
@@ -0,0 +1,15 @@
+import click
+
+from app.utils.cortex_utils import upload_to_cortex
+
+@click.command('')
+@click.option('-i', '--input', 'opt_fp_in', required=True,
+ help='Path to input image')
+@click.option('-f', '--folder_id', 'opt_folder_id', required=True,
+ help='ID of folder on Cortex')
+@click.pass_context
+def cli(ctx, opt_fp_in, opt_folder_id):
+ """
+ Test uploading a file to Cortex
+ """
+ upload_to_cortex(opt_folder_id, opt_fp_in)