update doc with sort example
This commit is contained in:
parent
74da6909c3
commit
fb94921afd
27
README.md
27
README.md
@ -96,22 +96,23 @@ gocage list -f Config.Boot=1,Running=true -o JID,Name,Running,Config.Boot -s +JI
|
||||
+-----+----------+---------+-------------+
|
||||
</pre></code>
|
||||
|
||||
You can use up to 3 criteria, delimited with comma:
|
||||
You can use up to 3 criteria, delimited with comma.
|
||||
As an example, you want to list boot priorities of automatically starting jails:
|
||||
<pre><code>
|
||||
gocage list -f Config.Boot=1,Running=true -o JID,Name,Running,Config.Boot -s +JID,+Name
|
||||
+=====+==========+=========+=============+
|
||||
| JID | Name | Running | Config.Boot |
|
||||
+=====+==========+=========+=============+
|
||||
| 22 | srv-dns1 | true | 1 |
|
||||
+-----+----------+---------+-------------+
|
||||
| 29 | bdd-tst | true | 1 |
|
||||
+-----+----------+---------+-------------+
|
||||
| 183 | test | true | 1 |
|
||||
+-----+----------+---------+-------------+
|
||||
gocage list -o JID,Name,Config.Ip4_addr,Config.Priority,Config.Boot,Running -s -Config.Priority,-Config.Boot -f Running=true
|
||||
+=====+==============+=======================+=================+=============+=========+
|
||||
| JID | Name | Config.Ip4_addr | Config.Priority | Config.Boot | Running |
|
||||
+=====+==============+=======================+=================+=============+=========+
|
||||
| 1 | srv-dhcp | vnet0|192.168.1.2/24 | 99 | 1 | true |
|
||||
+-----+--------------+-----------------------+-----------------+-------------+---------+
|
||||
| 8 | srv-dns | vnet0|192.168.1.1/24 | 80 | 1 | true |
|
||||
+-----+--------------+-----------------------+-----------------+-------------+---------+
|
||||
| 7 | srv-random | vnet0|192.168.1.12/24 | 20 | 1 | true |
|
||||
+-----+--------------+-----------------------+-----------------+-------------+---------+
|
||||
| 4 | coincoin | vnet0|192.168.1.9/24 | 20 | 0 | true |
|
||||
+-----+--------------+-----------------------+-----------------+-------------+---------+
|
||||
</pre></code>
|
||||
|
||||
OK the example is shitty as JID are unique. But this work, trust me!
|
||||
|
||||
|
||||
Stop jails
|
||||
----------
|
||||
|
Loading…
Reference in New Issue
Block a user