[Feature] Improvements to handling charts on the CLI results (#6544)

* better handling of the chart arg: falls back to charting.to_chart() and only then, if not possible to display falls back to the print_rich_table()

* handling chart arguments aka unknown arguments

* propagating changes on return type of parse_simple_args to choices.py for coherency
This commit is contained in:
Henrique Joaquim
2024-06-26 14:08:56 +01:00
committed by GitHub
parent 37903a1cae
commit 5e69ce3d25
5 changed files with 134 additions and 47 deletions

View File

@@ -205,10 +205,11 @@ class CLIController(BaseController):
choices["results"] = {
"--help": None,
"-h": "--help",
"--export": None,
"--export": {c: None for c in ["csv", "json", "xlsx", "png", "jpg"]},
"--index": None,
"--key": None,
"--chart": None,
"--sheet_name": None,
}
self.update_completer(choices)