i’m looking for any cli framework supports tab key auto-completion feature. I looked at spf13/cobra and docker/docker-machine cli sample but they didn’t have the option for this feature.
for example, if I have 4 commands for App(show/set/start/status), when I type
“App s”
and then press TAB key, the cli can come back with 4 options
show
set
start
status
and if I continue type
“App stat”
and then press TAB key, the cli can auto fill in “status” word. Another nice feature is that I can use “App stat” directly with the next sub-command without fully typing/finishing “Status” word.
this kind of behavior is popular for network device cli like Cisco IOS/NX-OS.
any pointers?
Thanks
Hongjun