nmcli: improve connection autocompletion (2/2)

System Internals / NetworkManager - Lubomir Rintel [v3.sk] - 21 June 2016 09:28 UTC

Complete the property as we parse the list of properties. This makes it possible to actually complete an unfinished property. E.g:

$ nmcli --complete c modify enp0s25 +ipv6.addr +ipv6.addresses +ipv6.addr-gen-mode

3aff650 nmcli: improve connection autocompletion (2/2)
clients/cli/connections.c | 210 ++++++++++++++++++++++++++++--------------
clients/cli/nmcli-completion | 20 +---
clients/cli/nmcli.c | 19 ++--
3 files changed, 158 insertions(+), 91 deletions(-)

Upstream: cgit.freedesktop.org


  • Share