CLI: Refactor cli_complete.
authorCorey Farrell <git@cfware.com>
Tue, 7 Nov 2017 21:34:40 +0000 (16:34 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 21 Nov 2017 14:48:36 +0000 (09:48 -0500)
commitfbb8c0d3e4138c24c454654a247c25879173ca0c
treef4da879bd0f722f4ccbdb06f3f298ea63a681752
parent1cd24cd726a92de1d07125b3da7574c5c946709b
CLI: Refactor cli_complete.

* Stop using "_COMMAND NUMMATCHES" on remote consoles.  Using this
  command had doubled the amount of work needed from the Asterisk
  daemon for each completion request.
* Fix code formatting.
* Remove static buffer used to send the command, use the same buffer
  that will receive the results.
* Move sort from ast_cli_display_match_list.

Change-Id: Ie2211b519a3d4bec45bf46e0095bdd01d384cb69
main/asterisk.c