summaryrefslogtreecommitdiff
path: root/cli/app/commands/cortex
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/commands/cortex')
-rw-r--r--cli/app/commands/cortex/upload.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/app/commands/cortex/upload.py b/cli/app/commands/cortex/upload.py
index c1b0a46..c176eb9 100644
--- a/cli/app/commands/cortex/upload.py
+++ b/cli/app/commands/cortex/upload.py
@@ -1,6 +1,7 @@
import click
+import json
-from app.utils.cortex_utils import upload_to_cortex
+from app.utils.cortex_utils import upload_file_to_cortex
@click.command('')
@click.option('-i', '--input', 'opt_fp_in', required=True,
@@ -12,4 +13,5 @@ def cli(ctx, opt_fp_in, opt_folder_id):
"""
Test uploading a file to Cortex
"""
- upload_to_cortex(opt_folder_id, opt_fp_in)
+ data = upload_file_to_cortex(opt_folder_id, opt_fp_in)
+ print(json.dumps(data, indent=2))