X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fscripts%2Fvppctl_completion;h=2a64e9abd083b7de407ffade14e12018e55b6264;hb=a025b3ea353b5c5c356efda0888d75a2ab8979e0;hp=7e60249f13137c7108f8ed9eaf4a807076e39cc1;hpb=d995c757f05f78aa759b0a65c0a7e38088e690a9;p=vpp.git diff --git a/src/scripts/vppctl_completion b/src/scripts/vppctl_completion old mode 100755 new mode 100644 index 7e60249f131..2a64e9abd08 --- a/src/scripts/vppctl_completion +++ b/src/scripts/vppctl_completion @@ -1,4 +1,4 @@ -#Copyright 2016 Intel Corporation +#Copyright 2017 Intel Corporation # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ _vppctl() prev="${COMP_WORDS[@]:1}" num="$((${#COMP_WORDS[@]}-1))" - VPP_CMD_LIST="$(cat /usr/share/vpp/clicmd.itemlist)" + VPP_CMD_LIST="$(cat /usr/share/vpp/vppctl-cmd-list)" opts="$(awk -v prev="^$prev" -v num=$num '{if($0 ~ prev) print $num}' <<< "${VPP_CMD_LIST}")"