Closed GoogleCodeExporter closed 8 years ago
so maybe a new PTYPE method can be added, method="command" and then specify
command="/path/to/script"
It would return a list of possible completions in a specific format. klish
would have to check against the list of completions for tab completion
candidates.
Original comment by koba...@gmail.com
on 29 Feb 2012 at 5:53
To create script generated completion you can use dynamic variables and
"completion" field of PARAM tag.
<VAR name="ETH"
help="Ethernet interfaces system prefix"
value="eth"/>
<VAR name="POSSIBLE_ETH"
help="Displays possible ethernet numbers (with VLANs)" dynamic="true">
<ACTION>
iface-possible ${ETH}
</ACTION>
</VAR>
<PARAM name="sifnum" ptype="IFACE_NUM" help="Interface number"
completion="${POSSIBLE_IFACE}"/>
Original comment by serj.kalichev@gmail.com
on 29 Feb 2012 at 7:26
Original issue reported on code.google.com by
koba...@gmail.com
on 29 Feb 2012 at 5:45