<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/cli/src/network-manager.c, branch th/minor-cli-changes</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 command line parsing first check for help option</title>
<updated>2013-11-11T14:15:56+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2013-11-11T13:57:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=cd32796112fa6ce1696e85b40e7429501ccdba0f'/>
<id>cd32796112fa6ce1696e85b40e7429501ccdba0f</id>
<content type='text'>
Move the ckecks for nmc_arg_is_help to the beginning of the
checks for command matches.

Up to now, no command begins with 'h', so this has no behavioral
change whatsoever. But imagine a command that begins with 'h'
(for example `nmcli general hostname`), in that case `nmcli general h`
should still show the help, as users might be accustomed to this
abbreviation.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move the ckecks for nmc_arg_is_help to the beginning of the
checks for command matches.

Up to now, no command begins with 'h', so this has no behavioral
change whatsoever. But imagine a command that begins with 'h'
(for example `nmcli general hostname`), in that case `nmcli general h`
should still show the help, as users might be accustomed to this
abbreviation.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: clarify 'startup' property when NM is not running</title>
<updated>2013-09-12T18:15:50+00:00</updated>
<author>
<name>Dan Williams</name>
<email>dcbw@redhat.com</email>
</author>
<published>2013-09-12T18:15:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e4b92acdf79a8dcb76b5192916d157eaa4e3a163'/>
<id>e4b92acdf79a8dcb76b5192916d157eaa4e3a163</id>
<content type='text'>
Wouldn't make a ton of sense to print "started" for the STARTING
property if NM wasn't running.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Wouldn't make a ton of sense to print "started" for the STARTING
property if NM wasn't running.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: fix build error due to possibly uninitialized variable</title>
<updated>2013-09-12T18:13:09+00:00</updated>
<author>
<name>Dan Williams</name>
<email>dcbw@redhat.com</email>
</author>
<published>2013-09-12T18:13:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=15ddc6dce3eaa81054a2a033f5ad8ad2262d7ac3'/>
<id>15ddc6dce3eaa81054a2a033f5ad8ad2262d7ac3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: add STARTUP field for 'nmcli -f all general status'</title>
<updated>2013-09-12T14:29:26+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-09-12T14:23:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=1df99481992641cd0aee1322255410cd8e9ebfab'/>
<id>1df99481992641cd0aee1322255410cd8e9ebfab</id>
<content type='text'>
It says 'starting' when NM is in the process of startup (still activating
connections); 'started' when NM finished the startup.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It says 'starting' when NM is in the process of startup (still activating
connections); 'started' when NM finished the startup.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: consolidate a code for connectivity check a bit</title>
<updated>2013-09-12T12:45:08+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-09-12T12:45:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=fa36216787eb48382c6c6bba64e6c577462b3f27'/>
<id>fa36216787eb48382c6c6bba64e6c577462b3f27</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: special error message for access denied when SetLogging fails</title>
<updated>2013-09-04T09:56:46+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2013-08-29T10:24:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=00e1e20b16f5c5ec42700ad1e61571230e0edaf1'/>
<id>00e1e20b16f5c5ec42700ad1e61571230e0edaf1</id>
<content type='text'>
Setting the logging level fails for normal users due to missing dbus
permissions as configured in src/org.freedesktop.NetworkManager.conf.

In that case, nmcli simply fails showing the dbus error. This error
is however not very clear, so this commit shows a different error
text for the particular case of ACCESS_DENIED.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting the logging level fails for normal users due to missing dbus
permissions as configured in src/org.freedesktop.NetworkManager.conf.

In that case, nmcli simply fails showing the dbus error. This error
is however not very clear, so this commit shows a different error
text for the particular case of ACCESS_DENIED.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: add connectivity support</title>
<updated>2013-08-28T14:54:09+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2013-08-28T14:06:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=a854a273c9e2bea2d8d0832d704624b19fecd243'/>
<id>a854a273c9e2bea2d8d0832d704624b19fecd243</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: trivial update of NmcOutputField initializers</title>
<updated>2013-05-31T07:38:03+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-05-27T10:39:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=66098fa6073f692b7dc136e7db192f3ea1ab1566'/>
<id>66098fa6073f692b7dc136e7db192f3ea1ab1566</id>
<content type='text'>
no actual change
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
no actual change
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: adapt the code for the new flags and printing facilities</title>
<updated>2013-05-31T07:38:03+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-05-22T06:37:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=1d1cfd77d381681e8cd50470028f47485d64111e'/>
<id>1d1cfd77d381681e8cd50470028f47485d64111e</id>
<content type='text'>
The data are added to output_data at first, and then they are printed all at
once using print_data(), that takes care of proper alignment and display.

The static 'width' values defined in NmcOutputField columns are not used now,
but dynamically computed maximal widths override them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The data are added to output_data at first, and then they are printed all at
once using print_data(), that takes care of proper alignment and display.

The static 'width' values defined in NmcOutputField columns are not used now,
but dynamically computed maximal widths override them.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: remove RUNNING field from default 'common' fields</title>
<updated>2013-05-10T10:28:01+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-05-10T10:16:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=a453563beea18ed2d3251eda41cb968a64726298'/>
<id>a453563beea18ed2d3251eda41cb968a64726298</id>
<content type='text'>
That way it is not displayed by default:
$ nmcli general status

But can be explicitly requested:
$ nmcli -t -f running,version general status
$ nmcli -f all general status

E.g. Fedora initscripts do this in
/etc/sysconfig/network-scripts/network-functions

is_nm_running ()
{
    [ "$(LANG=C nmcli -t --fields running nm status 2&gt;/dev/null)" = "running" ]
}
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That way it is not displayed by default:
$ nmcli general status

But can be explicitly requested:
$ nmcli -t -f running,version general status
$ nmcli -f all general status

E.g. Fedora initscripts do this in
/etc/sysconfig/network-scripts/network-functions

is_nm_running ()
{
    [ "$(LANG=C nmcli -t --fields running nm status 2&gt;/dev/null)" = "running" ]
}
</pre>
</div>
</content>
</entry>
</feed>
