[lxc-devel] [lxd/master] lxc: Add a "rename" alias
stgraber on Github
lxc-bot at linuxcontainers.org
Wed Aug 31 20:22:30 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 383 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160831/90cc0d80/attachment.bin>
-------------- next part --------------
From 88815ad266c08411db9bc730423affb47b4be4c6 Mon Sep 17 00:00:00 2001
From: Carlos Neira <cneirabustos at gmail.com>
Date: Wed, 31 Aug 2016 16:21:50 -0400
Subject: [PATCH] lxc: Add a "rename" alias
Closes #2320
Closes #2329
Signed-off-by: Carlos Neira <cneirabustos at gmail.com>
---
lxc/main.go | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lxc/main.go b/lxc/main.go
index 22288e4..a3dcc70 100644
--- a/lxc/main.go
+++ b/lxc/main.go
@@ -211,10 +211,11 @@ var commands = map[string]command{
var defaultAliases = map[string]string{
"shell": "exec @ARGS@ -- login -f root",
- "cp": "copy",
- "ls": "list",
- "mv": "move",
- "rm": "delete",
+ "cp": "copy",
+ "ls": "list",
+ "mv": "move",
+ "rename": "move",
+ "rm": "delete",
"image cp": "image copy",
"image ls": "image list",
More information about the lxc-devel
mailing list