diff --git a/CHANGELOG.md b/CHANGELOG.md index c1b0c711..92ee5b10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -128,6 +128,7 @@ Developers may need to change their code ### Corrected Bugs +* Fixed: [Clixon CLI issue: when I try to print the value of the leaf node nothing appeared](https://github.com/clicon/clixon/issues/345) * Fixed: [Can't use + symbol in the enum statement without quotes](https://github.com/clicon/clixon/issues/241) * Fixed: [String concatenation in YANG model leads to syntax error ](https://github.com/clicon/clixon/issues/265) * Fixed: ["autocli:hide-show" extension cause bug in xmldb_put method #343](https://github.com/clicon/clixon/issues/343) diff --git a/apps/cli/cli_show.c b/apps/cli/cli_show.c index 8b71ea6d..6045485e 100644 --- a/apps/cli/cli_show.c +++ b/apps/cli/cli_show.c @@ -770,11 +770,11 @@ cli_show_auto1(clicon_handle h, fprintf(stdout, "]]>]]>\n"); break; case FORMAT_JSON: - if (clixon_json2file(stdout, xp, 1, cligen_output, 1, 1) < 0) + if (clixon_json2file(stdout, xp, 1, cligen_output, 0, 1) < 0) goto done; break; case FORMAT_TEXT: - if (clixon_txt2file(stdout, xp, 0, cligen_output, 1, 1) < 0) + if (clixon_txt2file(stdout, xp, 0, cligen_output, 0, 1) < 0) goto done; break; case FORMAT_XML: diff --git a/example/main/example_cli.cli b/example/main/example_cli.cli index 79e9ea9a..a4104c8d 100644 --- a/example/main/example_cli.cli +++ b/example/main/example_cli.cli @@ -69,7 +69,7 @@ copy("Copy and create a new object") { discard("Discard edits (rollback 0)"), discard_changes(); show("Show a particular state of the system"){ - auto("Show expand") @datamodel, cli_show_auto("candidate", "xml"); + auto("Show expand") @datamodelshow, cli_show_auto("candidate", "xml"); xpath("Show configuration") ("XPATH expression") [("Namespace")], show_conf_xpath("candidate"); version("Show version"), cli_show_version("candidate", "text", "/");