Releases: clicon/cligen
Releases · clicon/cligen
CLIgen 7.2.0
7.2.0
28 October 2024
Features
- New version string on the form:
7.1.0-1+11+g2b25294
- Deb build script
- New: CLI simple alias
Corrected Bugs
CLIgen 7.1.0
7.1.0
3 July 2024
Features
- Added history callbacks API:
cligen_hist_fn_set
- Added history subsection in tutorial
- Changed intermediate version numbers to be git-style, eg
7.0.0-39
instead of7.1.0-PRE
CLIgen 7.0.0
7.0.0
8 March 2024
Minor items
- Added new cligen_paging_get/set for a direct way to disable/enable output paging/scrolling.
- Made coverity analysis and fixed most of them
- Some were ignored being for generated code (eg lex) or not applicable
- Added vcprintf
CLIgen 6.5.0
CLIgen 6.4.0
6.4.0
30 September 2023
C/CLI-API changes on existing features
Developers may need to change their code
- Changed
tv
parameter oftime2str()
from struct to a pointer.- All calls to
time2str()
need to be converted.
- All calls to
- Removed obsolete functions
pt_name_get()
/pt_name_set()
Corrected Bugs
- Output pipes released in 6.3 have several minor bugfixes
- Fixed: CLI show config | display exits over mountpoints with large YANGs
- Removed timeout for pipes and enabled ctrl-C
- Fixed: Escaping with backslash() in variable strings cannot be done for backslash itself
CLIgen 6.3.0
6.3.0
29 July 2023
New features
- Output pipes
- Callbacks with name starting with
|
is a pipe tree containing pipe output function - Use 'pipetree="|"` to reference a default pipe-tree.
- For more info:
- CLIgen tutorial Section 2.8
- Best way to implement output pipes?
- Callbacks with name starting with
Minor features
- Added callback_argument access functions for keeping track of api-paths for recursive expands
- This is to enable memory footprint optimization in higher layers (clixon)
- Removed extras/ build-root/ and rpm build code since they are not properly maintained
C/CLI-API changes on existing features
Developers may need to change their code
- Refactoring of tree expansion code,
- Most of these API changes are internal and should not affect external API (but may):
cligen_eval()
: Removedcallback
parametercliread_parse()
: Removedcallback
parameter- Renamed co flag:
CO_FLAGS_TREEREF
toCO_FLAGS_TOPOFTREE
- Renamed
cligen_parse
functions and added treename parameter:- Renamed
cligen_parse_str
toclispec_parse_str
andcligen_parse_file
toclispec_parse_file
- Added
treename
parameter, defaultNULL
- Renamed
CLIgen 6.2.0
6.2.0
30 April 2023
Minor features
- Added wrapper callback for accessing treerefs, in an effort to make them dynamical/programmable
Corrected Bugs
CLIgen 6.1.0
6.1.0
19 february 2023
Minor features
- Make cligen_* functions const by @dima1308 in #83
- Eliminate linear search for active parse tree by @rcmcdonald91 in #84
- Added print functions for VOID type using printf
%p
Corrected Bugs
CLIgen 6.0.0
6.0.0
29 November 2022
Minor features
- Code formatting: Change indentation style to space
- Applies to all c/h/y/l/sh files and .editorconfig
Corrected Bugs
CLIgen 5.8.0
5.8.0
28 July 2022
New Features
- The Variable preference implementation has been updated and documented
- If more than one variable have the same preference, an "Ambiguos command" error is returned
- Such tiebreaks can be resolved by a new "preference" keyword, eg:
<string preference:20>
- There is also an extended API:
cligen_preference_mode_set()
- This change may affect existing code in the following ways:
- A string variable with "expand()" function has higher preference than without expand function
Ambiguous command
error is returned in more cases
- More info: Section 3.14 of the CLIgen tutorial