diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-06-01 00:10:44 +0700 |
---|---|---|
committer | laforge <laforge@gnumonks.org> | 2019-06-06 06:26:30 +0000 |
commit | 8c9befeaee7df8758a0584a7fdc988ab9afb14af (patch) | |
tree | ef0dc2e5e743162f2cf3de6215726098e7f0e460 /Doxyfile.core.in | |
parent | cb5e8312b6eaecb4080276b0288de3949e5616e7 (diff) |
vty_transcript_test.vty: add choice auto-complete tests
This patch is a result of discussion we had in [1]. The key idea
is that libosmovty should properly auto-complete the commands
containing choice, such as the following one:
multi0 (one|two|three)
[1] If9b0c0d031477ca87786aab5c269d00748e896c8
Right now, sending the following command:
(osmo-foo-bar)# multi0 th
would basically match the following vector:
multi0 three
however the resulting argv would be:
["multi0", "th"]
Moreover, sending the following command:
(osmo-foo-bar)# multi0 t
would basically match the following vectors:
multi0 two
multi0 three
because both start from 't', so the resulting argv would be:
["multi0", "t"]
which is ambiguous!
The expected output is:
(osmo-foo-bar)# multi0 th
ok argc=1 three
(osmo-foo-bar)# multi0 t
% Ambiguous command.
This is going to be fixed in the follow up patches.
Change-Id: I83c3aef813173952641035862c534ef16384780e
Diffstat (limited to 'Doxyfile.core.in')
0 files changed, 0 insertions, 0 deletions