<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/clients/cli/nmcli-completion, branch lr/completion-3</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>cli: make nmcli do its own command completion</title>
<updated>2017-02-13T15:32:15+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2016-08-01T12:22:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=9d2290135ce50fca1e2d1ef4a724bb23d2ea4f53'/>
<id>9d2290135ce50fca1e2d1ef4a724bb23d2ea4f53</id>
<content type='text'>
https://bugzilla.gnome.org/show_bug.cgi?id=777328
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.gnome.org/show_bug.cgi?id=777328
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: completion: escape shell special characters "()&amp;!"</title>
<updated>2016-10-26T11:41:00+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2016-10-17T13:07:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=108f04e71eeeb599073eb11ebbdf9b09dabeb6a3'/>
<id>108f04e71eeeb599073eb11ebbdf9b09dabeb6a3</id>
<content type='text'>
https://bugzilla.gnome.org/show_bug.cgi?id=772629
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.gnome.org/show_bug.cgi?id=772629
</pre>
</div>
</content>
</entry>
<entry>
<title>cli/device: add modify command</title>
<updated>2016-06-29T18:28:42+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2016-06-22T16:25:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8b4494598d04b6754a69463a4dc7274fdff8763f'/>
<id>8b4494598d04b6754a69463a4dc7274fdff8763f</id>
<content type='text'>
It modifies the applied connection using the Reapply API.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It modifies the applied connection using the Reapply API.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: option autocompletion should not match words without trailing '-'</title>
<updated>2016-06-28T10:12:39+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-28T10:12:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=fdecb6b6691e176bbc1bcce3ccac6f08d800ed59'/>
<id>fdecb6b6691e176bbc1bcce3ccac6f08d800ed59</id>
<content type='text'>
This would fix for example:
nmcli e &lt;TAB&gt;
(e interpreted as --escape, would allow autocompletion to work... but
when the command is executed an error is reported)

Moreover, we will now have:
nmcli c &lt;TAB&gt;
autocompletion work correctly, i.e., c is correctly interpreted  as
"connection" instead of "--colors"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This would fix for example:
nmcli e &lt;TAB&gt;
(e interpreted as --escape, would allow autocompletion to work... but
when the command is executed an error is reported)

Moreover, we will now have:
nmcli c &lt;TAB&gt;
autocompletion work correctly, i.e., c is correctly interpreted  as
"connection" instead of "--colors"
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: autocompletion: add missing log level and domains</title>
<updated>2016-06-27T09:40:39+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2016-06-27T09:33:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=4c7f609d51decb9ea1c17992e96c4c2ab94c8ad1'/>
<id>4c7f609d51decb9ea1c17992e96c4c2ab94c8ad1</id>
<content type='text'>
Add KEEP level and DHCP, IP, AUDIT, SYSTEMD, VPN_PLUGIN domains.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add KEEP level and DHCP, IP, AUDIT, SYSTEMD, VPN_PLUGIN domains.
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: manage autocompletion of "nmcli connection add" when no args are passed</title>
<updated>2016-06-23T15:35:08+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-23T12:44:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=ea9dcd08faf1436d97fdec53518c46bfd088690e'/>
<id>ea9dcd08faf1436d97fdec53518c46bfd088690e</id>
<content type='text'>
This enables back "help" "--help" "-help" in autocompletion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This enables back "help" "--help" "-help" in autocompletion.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: use --complete-args for connection add completion</title>
<updated>2016-06-21T16:40:22+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2016-06-21T10:16:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8b39090597159dea52b5ffb760395ab593c7a3dc'/>
<id>8b39090597159dea52b5ffb760395ab593c7a3dc</id>
<content type='text'>
And make it incredibly slow at the same time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And make it incredibly slow at the same time.
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: improve connection autocompletion (2/2)</title>
<updated>2016-06-21T14:28:48+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2016-06-15T11:12:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=3aff650e2219d45a9c353dfebe590a638a470727'/>
<id>3aff650e2219d45a9c353dfebe590a638a470727</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: enable connection autocompletion for 802.1x properties</title>
<updated>2016-06-21T14:28:48+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-13T16:59:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=cd4395a261d24f4aaca0e39783d2d25f642c27ac'/>
<id>cd4395a261d24f4aaca0e39783d2d25f642c27ac</id>
<content type='text'>
nmcli bash autocompletion leveraged on "nmcli connection edit", "print"
to retrieve the specific properties of a connection. Anyway, the
interactive editor is smart and just prints the used components, so in a
connection where 802.1x is not enabled we had no autocompletion.
Solved adding an "hidden" command "nmcli --complete connection modify"
as suggested in bgo #724860 in order to retrieve ALL the available
properties for use in autocompletion.
Here patch from L.Rintel has been merged to make che --complete option
global to nmcli (first version was local to "connection modify").

https://bugzilla.gnome.org/show_bug.cgi?id=724860
https://bugzilla.redhat.com/show_bug.cgi?id=1301226
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nmcli bash autocompletion leveraged on "nmcli connection edit", "print"
to retrieve the specific properties of a connection. Anyway, the
interactive editor is smart and just prints the used components, so in a
connection where 802.1x is not enabled we had no autocompletion.
Solved adding an "hidden" command "nmcli --complete connection modify"
as suggested in bgo #724860 in order to retrieve ALL the available
properties for use in autocompletion.
Here patch from L.Rintel has been merged to make che --complete option
global to nmcli (first version was local to "connection modify").

https://bugzilla.gnome.org/show_bug.cgi?id=724860
https://bugzilla.redhat.com/show_bug.cgi?id=1301226
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli autocompletion cleanups</title>
<updated>2016-06-21T14:28:39+00:00</updated>
<author>
<name>Francesco Giudici</name>
<email>fgiudici@redhat.com</email>
</author>
<published>2016-06-10T12:48:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=fbaaf51f52b690c6d8b4512854994731cbda8a6f'/>
<id>fbaaf51f52b690c6d8b4512854994731cbda8a6f</id>
<content type='text'>
* no need to check HELP_ONLY_AS_FIRST var as when --help option is passed
  _nmcli_compl_OPTIONS will return 0, falling in the general case that
  will trigger end of autocompletion

* clanup local var declaration in _nmcli func:
  - remove dupliated OPTIONS_MANDATORY declaration
  - init HELP_ONLY_AS_FIRST on declaration
  - order vars for common prefix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* no need to check HELP_ONLY_AS_FIRST var as when --help option is passed
  _nmcli_compl_OPTIONS will return 0, falling in the general case that
  will trigger end of autocompletion

* clanup local var declaration in _nmcli func:
  - remove dupliated OPTIONS_MANDATORY declaration
  - init HELP_ONLY_AS_FIRST on declaration
  - order vars for common prefix
</pre>
</div>
</content>
</entry>
</feed>
