Add TAB-based auto-completion to the CLI 55/6755/5
authorYoann Desmouceaux <ydesmouc@cisco.com>
Thu, 18 May 2017 09:00:48 +0000 (11:00 +0200)
committerChris Luke <chris_luke@comcast.com>
Tue, 23 May 2017 17:55:11 +0000 (17:55 +0000)
commit3060e07b71fd4dd6203769d73c4f8f21709f9b9c
tree5f1750c2c0e2c97fd141064655ecebeb609682d1
parent8c4611b39162da9753caaf654741faa115eaf612
Add TAB-based auto-completion to the CLI

Hitting tab:
 - in the middle of a uniquely defined subcommand will expand the subcommand
 - in the middle of a non-uniquely defined (or empty) subcommand will display
   all possible subcommands, and possibly expand to the lowest common prefix

Change-Id: Ib858eefdb0353cd2c3aad472799d15cd537455a0
Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
src/vlib/cli.c
src/vlib/cli.h
src/vlib/unix/cli.c