Added CLIgen tab-modes in config option CLICON_CLI_TAB_MODE, which means you can control the behaviour of <tab> in the CLI.

This commit is contained in:
Olof hagsand 2019-05-29 20:11:31 +02:00
parent 0ef704563b
commit 55f9b7cab0
4 changed files with 22 additions and 1 deletions

View file

@ -316,7 +316,7 @@ module clixon-config {
type string;
default "datamodel";
description
"If CLICON_CLI_GENMODEL is set, CLI specs can reference the
"If set, CLI specs can reference the
model syntax using this reference.
Example: set @datamodel, cli_set();";
}
@ -346,6 +346,20 @@ module clixon-config {
Set to 1 if you want CLI to scroll sideways when approaching
right margin";
}
leaf CLICON_CLI_TAB_MODE {
type int8;
default 0;
description
"Set CLI tab mode. This is actually a bitfield of three
combinations:
bit 1: 0: <tab> shows short info of available commands
1: <tab> has same output as <?>, ie line per command
bit 2: 0: On <tab>, select a command over a <var> if both exist
1: Commands and vars have same preference.
bit 3: 0: On <tab>, never complete more than one level per <tab>
1: Complete all levels at once if possible.
";
}
leaf CLICON_CLI_UTF8 {
type int8;
default 0;