From 769338515a5108449d15a2be030dac271ca7ebd3 Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Mon, 14 Aug 2023 15:53:47 +0200 Subject: [PATCH] klish-plugin-infix: fix indentation in infix.xml Prior to this patch the indentation was a mix of tabs and spaces. Now use 2 spaces as indentation. Signed-off-by: Richard Alpe --- src/klish-plugin-infix/xml/infix.xml | 798 +++++++++++++-------------- 1 file changed, 399 insertions(+), 399 deletions(-) diff --git a/src/klish-plugin-infix/xml/infix.xml b/src/klish-plugin-infix/xml/infix.xml index eae4ba86..f154d457 100644 --- a/src/klish-plugin-infix/xml/infix.xml +++ b/src/klish-plugin-infix/xml/infix.xml @@ -1,464 +1,464 @@ + xmlns="https://klish.libcode.org/klish3" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="https://src.libcode.org/pkun/klish/src/master/klish.xsd"> - - - - - ShowBrackets = y - ShowSemicolons = y - KeysWithStatement = y - FirstKeyWithStatement = n - Colorize = y - Indent = 2 - DefaultKeys = y - ShowDefaultKeys = y - HidePasswords = n - EnableNACM = y - Oneliners = y - + + + + + ShowBrackets = y + ShowSemicolons = y + KeysWithStatement = y + FirstKeyWithStatement = n + Colorize = y + Indent = 2 + DefaultKeys = y + ShowDefaultKeys = y + HidePasswords = n + EnableNACM = y + Oneliners = y + - + + + factory-config + startup-config + running-config + + + + + + + startup-config + running-config + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /var/log + + + + + + + + + + + + + + + + %u@%h:/> + + + + - factory-config - startup-config - running-config + keybindings + tutorial + introduction - - + + + topic=${KLISH_PARAM_topic:-quick} + fn="/usr/share/infix/cli/${topic}.md" + if [ -f "$fn" ]; then + lowdown -t term "$fn" + else + echo "Topic not available." + fi + + - - - startup-config - running-config - - - + + /ietf-system:system-shutdown + - - - - - - - - - + + /ietf-system:system-restart + - - - - - - - - - + + /bin/sh -l + - - - - - - - - - + + pop + + + pop + - - - - - - - - - + + replace config + - - - - - - - - - + + + + + - - - /var/log - - - + + + pwgen -c -n -B -C + - - - - - - - - - - - - %u@%h:/> - - - - - - keybindings - tutorial - introduction - - - - topic=${KLISH_PARAM_topic:-quick} - fn="/usr/share/infix/cli/${topic}.md" - if [ -f "$fn" ]; then - lowdown -t term "$fn" - else - echo "Topic not available." - fi - - - - - /ietf-system:system-shutdown - - - - /ietf-system:system-restart - - - - /bin/sh -l - - - - pop - - - pop - - - - replace config - - - - - - - - - - - pwgen -c -n -B -C + + + + + + + + md5 + sha256 + sha512 + + + + + + + type=${KLISH_PARAM_pwhash:-md5} + salt=${KLISH_PARAM_pwsalt:+-S $KLISH_PARAM_pwsalt} + mkpasswd -m $type $salt $KLISH_PARAM_pwpass + + + - - - - + + + + /ietf-system:set-current-datetime + + + + + + + bridge -color link + + + + bridge -color fdb + + + bridge -color mdb + + + bridge -color -d mdb - - - - md5 - sha256 - sha512 - - + + + + bridge -color vlan + + + bridge -color -d vlan - - - - type=${KLISH_PARAM_pwhash:-md5} - salt=${KLISH_PARAM_pwsalt:+-S $KLISH_PARAM_pwsalt} - mkpasswd -m $type $salt $KLISH_PARAM_pwpass - + - + + - - - - /ietf-system:set-current-datetime + + date -R + + + date -Isec - + + - + + + ip -color link - - bridge -color link - - - - bridge -color fdb - - - bridge -color mdb - - - bridge -color -d mdb - - - - - bridge -color vlan - - - bridge -color -d vlan - - - - + + + ip -color -br link - - date -R - - - date -Isec - - + + ip -color -d link + + + + + + ip -color addr + + + + ip -color -br addr - - - ip -color link - - - - ip -color -br link - - - - ip -color -d link - - + + ip -color -d addr + + - - ip -color addr - - - - ip -color -br addr - - - - ip -color -d addr - - + + + + + + + + file=${KLISH_PARAM_fn:-syslog} + if [ -n "$KLISH_PARAM_lines" ]; then + tail -n $KLISH_PARAM_lines /log/$file + else + cat /log/$file + fi + + - - - - - - - - - file=${KLISH_PARAM_fn:-syslog} - if [ -n "$KLISH_PARAM_lines" ]; then - tail -n $KLISH_PARAM_lines /log/$file - else - cat /log/$file - fi - + + uptime + + + + uptime + + + + jq -C . /cfg/factory-config.cfg + + + + + + + + + jq -C . /cfg/startup-config.cfg + + + + + + + file=${KLISH_PARAM_fn:-syslog} + echo -e "\e[1mPress Ctrl-C to abort ────────────────────────────────────────────\e[0m" + tail -F /log/$file + + + + + + + netcalc $KLISH_PARAM_addrlen $KLISH_PARAM_netmask + + + + + + - - - uptime + + - - - uptime + + + + + + + count=${KLISH_PARAM_cnt:+-c $KLISH_PARAM_cnt} + iface=${KLISH_PARAM_iface:+-I $KLISH_PARAM_iface} + size=${KLISH_PARAM_sz:+-s $KLISH_PARAM_sz} + ttl=${KLISH_PARAM_ttl:+-t $KLISH_PARAM_ttl} + flood=${KLISH_PARAM_flood:+-f} + ping $iface $flood $count $size $ttl $KLISH_PARAM_addr + + - - jq -C . /cfg/factory-config.cfg + + + + + - - - - + + - - - jq -C . /cfg/startup-config.cfg + + - + + + + count=${KLISH_PARAM_cnt:+-c $KLISH_PARAM_cnt} + size=${KLISH_PARAM_sz:+-s $KLISH_PARAM_sz} + verbose=${KLISH_PARAM_verbose:+-vvv} + tcpdump -ln $count $size $verbose -i $KLISH_PARAM_iface $KLISH_PARAM_expr + + + - - - - file=${KLISH_PARAM_fn:-syslog} - echo -e "\e[1mPress Ctrl-C to abort ────────────────────────────────────────────\e[0m" - tail -F /log/$file - - + - - - - netcalc $KLISH_PARAM_addrlen $KLISH_PARAM_netmask - + + %u@%h:%w%x/> + - - - - - - - - - - - - - - - - - - - count=${KLISH_PARAM_cnt:+-c $KLISH_PARAM_cnt} - iface=${KLISH_PARAM_iface:+-I $KLISH_PARAM_iface} - size=${KLISH_PARAM_sz:+-s $KLISH_PARAM_sz} - ttl=${KLISH_PARAM_ttl:+-t $KLISH_PARAM_ttl} - flood=${KLISH_PARAM_flood:+-f} - ping $iface $flood $count $size $ttl $KLISH_PARAM_addr - - + + - - - - - - - - - - - - - - - - count=${KLISH_PARAM_cnt:+-c $KLISH_PARAM_cnt} - size=${KLISH_PARAM_sz:+-s $KLISH_PARAM_sz} - verbose=${KLISH_PARAM_verbose:+-vvv} - tcpdump -ln $count $size $verbose -i $KLISH_PARAM_iface $KLISH_PARAM_expr - - - + - + + + replace main + - - %u@%h:%w%x/> - + + + + replace main + - - + + + - + + + + replace main + - - - replace main - + + + - - - - replace main - + + + + - - - + - - - - replace main - + + + + - - - + + + + - - - - + + + + - + + + - - - - + + + - - - - + - - - - + + + - - - + + + + - - - + + + + - + + + + - - - + - - - - - - - - - - - - - - - - - - - - + + +