[lxc-devel] [lxd/master] Add a simple list formatting example for #3055
techtonik on Github
lxc-bot at linuxcontainers.org
Fri Mar 10 19:06:07 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 355 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170310/636ba287/attachment.bin>
-------------- next part --------------
From 5a26dff0aa5a76ddb2450802f611f025c408f5e4 Mon Sep 17 00:00:00 2001
From: anatoly techtonik <techtonik at gmail.com>
Date: Fri, 10 Mar 2017 22:05:54 +0300
Subject: [PATCH] Add a simple list formatting example for #3055
Signed-off-by: anatoly techtonik <techtonik at gmail.com>
---
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