<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/cli/src/utils.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: fix in matching command line arguments</title>
<updated>2013-11-11T14:15:23+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2013-11-11T13:43:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=0865a051eced6bdd42e4601e35402c35c2e6c2fc'/>
<id>0865a051eced6bdd42e4601e35402c35c2e6c2fc</id>
<content type='text'>
Ensure in matches() that a non empty cmd is given, otherwise
currently

  nmcli general -

matches to '-h' and is thus treated as

  nmcli general -h

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure in matches() that a non empty cmd is given, otherwise
currently

  nmcli general -

matches to '-h' and is thus treated as

  nmcli general -h

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: fix some leaks found by valgrind</title>
<updated>2013-10-24T02:22:35+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2013-10-03T14:08:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=0221971da5f0833edbd62090d5b44631c7e558a3'/>
<id>0221971da5f0833edbd62090d5b44631c7e558a3</id>
<content type='text'>
https://bugzilla.gnome.org/show_bug.cgi?id=709369
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.gnome.org/show_bug.cgi?id=709369
</pre>
</div>
</content>
</entry>
<entry>
<title>nmcli: reword error message for a wrong user input in edit mode</title>
<updated>2013-09-05T18:02:12+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2013-09-05T17:16:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=f6703f540c7186f7d6c3e0c8498a2c424d87c8e8'/>
<id>f6703f540c7186f7d6c3e0c8498a2c424d87c8e8</id>
<content type='text'>
Before, when specifying a setting.property with missing property name,
the following happened:

  nmcli&gt; set connection.
  Error: invalid property: '' not among [...

Reword this special error case of a missing property to make it more
clear.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before, when specifying a setting.property with missing property name,
the following happened:

  nmcli&gt; set connection.
  Error: invalid property: '' not among [...

Reword this special error case of a missing property to make it more
clear.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>all: replace struct in_addr with guint32</title>
<updated>2013-08-03T05:15:07+00:00</updated>
<author>
<name>Pavel Šimerda</name>
<email>psimerda@redhat.com</email>
</author>
<published>2013-07-31T21:59:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=320a9d16a3067df32f5ad8a2bb3770104ec359b1'/>
<id>320a9d16a3067df32f5ad8a2bb3770104ec359b1</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 'nmcli' command for nmcli connection editor configuration</title>
<updated>2013-07-22T11:37:16+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-04-05T21:42:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=ca1c0cdaf4071b4505681f5923d05ccd22882999'/>
<id>ca1c0cdaf4071b4505681f5923d05ccd22882999</id>
<content type='text'>
- show/hide status line:  nmcli&gt; nmcli status-line yes | no
- editor prompt color:    nmcli&gt; nmcli prompt-color &lt;0-8&gt;  (0 = normal/without color)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- show/hide status line:  nmcli&gt; nmcli status-line yes | no
- editor prompt color:    nmcli&gt; nmcli prompt-color &lt;0-8&gt;  (0 = normal/without color)
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: 'connection edit' - edit/add connections in an interactive editor</title>
<updated>2013-07-22T11:32:32+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-01-18T14:21:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=937eb485905d0c1df88cda9a391185f556e47643'/>
<id>937eb485905d0c1df88cda9a391185f556e47643</id>
<content type='text'>
nmcli connection edit [type &lt;type&gt;] [con-name &lt;name&gt;]

Examples:
nmcli c e
nmcli c e type ethernet
nmcli c e type wifi con-name "My home Wi-Fi"
nmcli c e type bond
...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nmcli connection edit [type &lt;type&gt;] [con-name &lt;name&gt;]

Examples:
nmcli c e
nmcli c e type ethernet
nmcli c e type wifi con-name "My home Wi-Fi"
nmcli c e type bond
...
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: 'dev wifi list' use nm_utils_ssid_to_utf8() to display SSID; add SSID-HEX</title>
<updated>2013-05-31T07:38:03+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-05-16T14:26:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=28704d1f422c3dce80936b2b0d7d61ef4523b557'/>
<id>28704d1f422c3dce80936b2b0d7d61ef4523b557</id>
<content type='text'>
This commit removes enclosing '' from SSID.
SSID-HEX is printed as a string of hex characters (each 2 chars represent one
byte).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit removes enclosing '' from SSID.
SSID-HEX is printed as a string of hex characters (each 2 chars represent one
byte).
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: print_required_fields() - fix non-ASCII strings alignment in multiline</title>
<updated>2013-05-31T07:38:03+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-05-28T07:21:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=7fe4345d0deb33a464b0c08c08ef36b35c94536e'/>
<id>7fe4345d0deb33a464b0c08c08ef36b35c94536e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: enhance printing to align tabular output properly and not to waste space</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:36:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e6870789b561b818cbb6d649d7707e2203d5720b'/>
<id>e6870789b561b818cbb6d649d7707e2203d5720b</id>
<content type='text'>
Until now we have used a static width defined for each column for tabular
output. Even if this worked in most cases, it was not optimal, because by
using too wide columns we wasted space, and in case of a too narrow column the
alignment broke. So, we need to know the longest string in a column to be able
to align columns in the tabular output. Thus, the printing has to be postponed
till we have all data available, and can find the widest column. This value is
then used for aligning while printing the data.

Arrays of NmcOutputField (rows) are inserted into output_data array. When all
data have been added, print_data() can be used to print the whole output_data
array with proper alignment.

A single row can be printed using print_required_fields().

Also, output flags are redone to better match the new output_data array.
The flags are needed for every row (in tabular output); they are stored in
the first field (NmcOutputField) for the whole row.

Addapted set_val_str() and set_val_arr() to set value type (char * x char **).
Added set_val_strc(), set_val_arrc() for const values that should not be freed.

output_data takes ownership of the data added to it and takes care of freeing
the memory.

See e.g.
https://bugzilla.gnome.org/show_bug.cgi?id=699503
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Until now we have used a static width defined for each column for tabular
output. Even if this worked in most cases, it was not optimal, because by
using too wide columns we wasted space, and in case of a too narrow column the
alignment broke. So, we need to know the longest string in a column to be able
to align columns in the tabular output. Thus, the printing has to be postponed
till we have all data available, and can find the widest column. This value is
then used for aligning while printing the data.

Arrays of NmcOutputField (rows) are inserted into output_data array. When all
data have been added, print_data() can be used to print the whole output_data
array with proper alignment.

A single row can be printed using print_required_fields().

Also, output flags are redone to better match the new output_data array.
The flags are needed for every row (in tabular output); they are stored in
the first field (NmcOutputField) for the whole row.

Addapted set_val_str() and set_val_arr() to set value type (char * x char **).
Added set_val_strc(), set_val_arrc() for const values that should not be freed.

output_data takes ownership of the data added to it and takes care of freeing
the memory.

See e.g.
https://bugzilla.gnome.org/show_bug.cgi?id=699503
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: nmc_string_to_bool() - util function for converting string to boolean</title>
<updated>2013-05-07T17:41:36+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-04-06T21:25:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=04d590a92335ddc79d12d81eae31af0519d76a15'/>
<id>04d590a92335ddc79d12d81eae31af0519d76a15</id>
<content type='text'>
["true", "yes", "on"] -&gt; TRUE
["false", "no", "off"] -&gt; FALSE
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
["true", "yes", "on"] -&gt; TRUE
["false", "no", "off"] -&gt; FALSE
</pre>
</div>
</content>
</entry>
</feed>
