diff --git a/aura/api_command.py b/aura/api_command.py index 7c8e8cb..4916a37 100644 --- a/aura/api_command.py +++ b/aura/api_command.py @@ -79,15 +79,15 @@ def wrapper(output: str, include: bool, raw: bool, verbose: bool, *args, **kwarg if data is None: print("Operation successful") - elif output_format == "json": + elif output_format.lower() == "json": print(json.dumps(data, indent=2)) - elif output_format == "table": + elif output_format.lower() == "table": out = format_table_output(data) print(out) - elif output_format == "text": + elif output_format.lower() == "text": out = format_text_output(data) print(out) - elif output_format == "yaml": + elif output_format.lower() == "yaml": print(yaml.dump(data)) else: raise UnsupportedOutputFormat(output_format)