[lxc-devel] [lxd/master] Add a simple list formatting example for #3055

techtonik on Github lxc-bot at linuxcontainers.org
Fri Mar 10 18:54:36 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170310/3d8478a5/attachment.bin>
-------------- next part --------------
From 02f813b14635b739c9362aefefeec01dcf510643 Mon Sep 17 00:00:00 2001
From: anatoly techtonik <techtonik at gmail.com>
Date: Fri, 10 Mar 2017 21:54:22 +0300
Subject: [PATCH] Add a simple list formatting example for #3055

---
 lxc/list.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lxc/list.go b/lxc/list.go
index e0d8b14..3176201 100644
--- a/lxc/list.go
+++ b/lxc/list.go
@@ -118,7 +118,9 @@ lxc list -c n,volatile.base_image:"BASE IMAGE":0,s46,volatile.eth0.hwaddr:MAC
     Shows a list of containers using the "NAME", "BASE IMAGE", "STATE", "IPV4",
     "IPV6" and "MAC" columns.
 
-    "BASE IMAGE" and "MAC" are custom columns generated from container configuration keys.`)
+    "BASE IMAGE" and "MAC" are custom columns generated from container configuration keys.
+lxc list -c ns,user.comment:comment
+    List images with their running state and user comment. `)
 }
 
 func (c *listCmd) flags() {


More information about the lxc-devel mailing list