CLI: Remove calls to ast_cli_generator.
authorCorey Farrell <git@cfware.com>
Thu, 9 Nov 2017 06:39:13 +0000 (01:39 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 21 Nov 2017 14:39:19 +0000 (09:39 -0500)
commita02cbc2ef3903c68737fddee79d8db1d66623ab4
tree9a6e99f94d71b6a3dbd6df05c336d16f04ce33aa
parent3abf8dfeae25126f0a8da47852a9cbaabb657e6a
CLI: Remove calls to ast_cli_generator.

The ability to add to localized storage cannot be supported by
ast_cli_generator.  The only calls to ast_cli_generator should be by
functions that need to proxy the CLI generator, for example 'cli check
permissions' or 'core show help'.

* ast_cli_generatornummatches now retrieves the vector of matches and
  reports the number of elements (not including 'best' match).
* test_substitution retrieves and iterates the vector.

Change-Id: I8cd6b93905363cf7a33a2d2b0e2a8f8446d9f248
include/asterisk/cli.h
main/cli.c
tests/test_substitution.c