shared/shell: add --zsh-complete option
authorRonan Pigott <rpigott@berkeley.edu>
Sat, 17 Aug 2019 06:34:50 +0000 (23:34 -0700)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:59 +0000 (14:27 +0530)
commitbe0c3ffe24a2d1c286fc6ce1da60d5ca95f1307b
treea584baaeb3634f23558f6d6365a32dff9399d87b
parentaefa8a60f23ebe5d6baafd782f30a5c2e07c6ed8
shared/shell: add --zsh-complete option

This adds a new long form option --zsh-complete to provide all available
commands in an output format suitable for parsing by zsh or other shell
completion scripts.

Invoke like: `bluetoothctl --zsh-complete help`

There is no corresponding short form option.

Change-Id: Idafb56b224f92a786223e43cae63babd1740834c
Signed-off-by: himanshu <h.himanshu@samsung.com>
src/shared/shell.c