Releases: clicon/cligen
Releases · clicon/cligen
5.6.0
Corrected Bugs
- Fixed: Multiple commands with common beginning gets collapsed into one
- Fixed: CLIgen output scrolling did not work if lines were wrapped
- Fixed:
Ctlr R
(reverse-i-search) adds additional character C on pressing right arrow`: #74 - Fixed: Helpstrings were duplicated in conjunction with option
[]
- Fixed: Duplicates in autocli expansion of leafs and treeref includes:
- #73
- clicon/clixon#301
- This was introduced in CLIgen 5.4
Full Changelog: 5.5.0...5.6.0
5.5.0
5.5.0
20 January 2022
Changes
- Refactor and optimize tree-reference handling
- Removed "deep" treeref copy which consumed lots of memory for large trees
- In other words, use "shallow" copy instead so you can state things like:
@tree, @remove foo;
- In other words, use "shallow" copy instead so you can state things like:
- Ensured indirect treeref functionality: eg tree referencing another tree:
@t0; treeref="t0"; @t1;
- Removed
cligen_reftree_filter_get()/_set()
functions and@delete:<label>
constructs- You can now only do eg:
ref @tree, @remove:<label>
- I.e., no default remove labels and no
@add:<label>
supported
- You can now only do eg:
- Removed "deep" treeref copy which consumed lots of memory for large trees
- Removed
#ifdef __GNUC__
around printf-like prototypes since both clang and gcc have format/printf macros defined - Removed
hide-database
andhide-database-auto-completion
labels- They were no-ops, only
hide
has meaning. - C flag
CO_FLAGS_HIDE_DATABASE
removed
- They were no-ops, only
- Removed optional
CLIGEN_HELPSTRING_VEC
andCLIGEN_HELPSTRING_SINGLE
from cligen_custom.h- Turns out when profiling a cvec consumes too much cpu cycles
- Added proper error message with line number when encountering errors in the CLIgen YACC parsing and its sub-routines, not only for LEX errors.
- Changed
pt_print()
signature to follow other print functions:- pt_print(FILE*, parsetree*)
Corrected Bugs
- Fixed: clispec parser escaped double quote:
\"
was not parsed correctly - Fixed: 5.4.0 introduced an issue with expand if exclude_keys is 0,
- and may return a constant instead of the variable in many cases
- Revisited Check if cg_obj is optional #38.
- The orignal workaround/fix in 1e9964e to disallow multiple []: "Do not think this is a costraining fix" was wrong.
- Fixed it by adding the CO_FLAGS_OPTION on any new cligen object created when within [].
- Also added [] in the print function, although this is not complete.