From f92221121246cba395be56e0db962c894cab4cfe Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 18 Jan 2022 10:12:15 +0100 Subject: [PATCH] * Changed autocli tree-labels using ac_ and act_ prefixes * New automatic edit-mode design * Control which modes to use with `edit-mode-default` * Default is create edit-mode for all * New edit-mode tree: @datamodelmode --- CHANGELOG.md | 13 +- apps/cli/cli_auto.c | 33 +- apps/cli/cli_autocli.c | 50 +++ apps/cli/cli_autocli.h | 1 + apps/cli/cli_generate.c | 292 +++++++++++------- apps/cli/cli_main.c | 71 ++++- example/main/example.xml.in | 2 + example/main/example_cli.cli | 2 +- ...tocli_edit.sh => test_autocli_editmode.sh} | 14 +- test/test_autocli_listkey_compress.sh | 28 +- yang/clixon/clixon-autocli@2021-12-05.yang | 34 +- 11 files changed, 382 insertions(+), 158 deletions(-) rename test/{test_autocli_edit.sh => test_autocli_editmode.sh} (97%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87252264..4892c9b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,7 +40,7 @@ Planned: January, 2022 * Changed auto-cli design * See [autocli documentation](https://clixon-docs.readthedocs.io/en/latest/cli.html#autocli) * Added new YANG clixon-autocli.yang, placing autocli options there - * Default rules for module exclusion, list-keywords, completion, treeref-state + * Default rules for module exclusion, list-keywords, completion, edit-modes, treeref-state * Specialized rules for module exclusion and compression * Replaced separate autocli trees with a single `@basemodel` tree by using filter labels * Filter labels are added to the fill tree and then filtered out using `@remove: