From abb3952fb7b56cc52b5d20f18cb3ca6f09dd86fe Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 8 Nov 2023 10:37:28 +0100 Subject: [PATCH] klish-plugin-infix: sync interactive command changes with upstream Upstream has replaced interactive="true" with: - in="tty" - out="tty" - interrupt="true" Also, disable Oneliners option since it's too confusing for users compared to the regular JSON output for startup and factory-config We can [skip ci] since we do not have any CLI tests yet. Signed-off-by: Joachim Wiberg --- src/klish-plugin-infix/xml/infix.xml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/klish-plugin-infix/xml/infix.xml b/src/klish-plugin-infix/xml/infix.xml index 058bf63e..15004b86 100644 --- a/src/klish-plugin-infix/xml/infix.xml +++ b/src/klish-plugin-infix/xml/infix.xml @@ -18,7 +18,7 @@ ShowDefaultKeys = y HidePasswords = n EnableNACM = y - Oneliners = y + Oneliners = n @@ -137,7 +137,7 @@ - /bin/sh -l + /bin/sh -l @@ -178,7 +178,7 @@ - + type=${KLISH_PARAM_pwhash:-sha512} salt=${KLISH_PARAM_pwsalt:+-S $KLISH_PARAM_pwsalt} mkpasswd -m $type $salt $KLISH_PARAM_pwpass @@ -234,18 +234,18 @@ - + - + if [ -n "$KLISH_PARAM_name" ]; then sysrepocfg -f json -X -d operational -x \ - "/ietf-interfaces:interfaces/interface[name='$KLISH_PARAM_name']" | \ - /lib/infix/cli-pretty "ietf-interfaces" -n "$KLISH_PARAM_name" + "/ietf-interfaces:interfaces/interface[name='$KLISH_PARAM_name']" | \ + /lib/infix/cli-pretty "ietf-interfaces" -n "$KLISH_PARAM_name" else - sysrepocfg -f json -X -d operational -m ietf-interfaces | \ - /lib/infix/cli-pretty "ietf-interfaces" + sysrepocfg -f json -X -d operational -m ietf-interfaces | \ + /lib/infix/cli-pretty "ietf-interfaces" fi @@ -307,14 +307,14 @@ - /bin/yorn "This will restore the device to factory state" + /bin/yorn "This will restore the device to factory state" /ietf-factory-default:factory-reset - + file=${KLISH_PARAM_fn:-syslog} echo -e "\e[1mPress Ctrl-C to abort ────────────────────────────────────────────\e[0m" tail -F /log/$file @@ -344,7 +344,7 @@ - + count=${KLISH_PARAM_cnt:+-c $KLISH_PARAM_cnt} iface=${KLISH_PARAM_iface:+-I $KLISH_PARAM_iface} size=${KLISH_PARAM_sz:+-s $KLISH_PARAM_sz} @@ -368,7 +368,7 @@ - + count=${KLISH_PARAM_cnt:+-c $KLISH_PARAM_cnt} size=${KLISH_PARAM_sz:+-s $KLISH_PARAM_sz} verbose=${KLISH_PARAM_verbose:+-vvv}