CLI output pipes: Add CLICON_PIPETREE to any cli files, not just the first

This commit is contained in:
Olof hagsand 2023-08-09 18:48:22 +02:00
parent cdc305ed2f
commit 6d53603c55
3 changed files with 14 additions and 6 deletions

View file

@ -88,6 +88,12 @@ show("Show a particular state of the system"){
}
EOF
# First file of mode does not have CLICON_PIPETREE, next have
cat <<EOF > $clidir/before.cli
CLICON_MODE="default";
dummy;
EOF
cat <<EOF > $clidir/default.cli
CLICON_MODE="default";
CLICON_PROMPT="%U@%H %W> ";
@ -110,7 +116,6 @@ EOF
cat <<EOF > $clidir/treeref.cli
CLICON_MODE="treeref";
CLICON_PIPETREE="|mypipe";
implicit("Show configuration"), cli_show_auto_mode("candidate", "xml", true, false);
explicit("Show configuration"), cli_show_auto_mode("candidate", "xml", true, false);{
@|mypipe, cli_show_auto_mode("candidate", "xml", true, false);