CLI configurable format: [Default format should be configurable](https://github.com/clicon/clixon-controller/issues/87)

Added option: `CLICON_CLI_OUTPUT_FORMAT` - Default CLI output format
This commit is contained in:
Olof hagsand 2024-04-05 15:13:24 +02:00
parent bd3a841103
commit 60a774cbf7
18 changed files with 168 additions and 83 deletions

View file

@ -286,7 +286,7 @@ pipe_showas_fn(clixon_handle h,
goto done;
}
if (cvec_len(argv) > argc){
if (cli_show_option_format(argv, argc++, &format) < 0)
if (cli_show_option_format(h, argv, argc++, &format) < 0)
goto done;
}
if (cvec_len(argv) > argc){