49 lines
1.3 KiB
Diff
49 lines
1.3 KiB
Diff
From ab9b2ecefed50f8acfcfbe1e4ab49b9d0ca5e9a8 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber@ubuntu.com>
|
|
Date: Fri, 30 Mar 2018 10:58:24 -0400
|
|
Subject: lxc: Fix mistakenly hidden commands
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Closes #4380
|
|
|
|
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
|
|
---
|
|
lxc/action.go | 2 --
|
|
lxc/launch.go | 1 +
|
|
2 files changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/lxc/action.go b/lxc/action.go
|
|
index 5e140c70..e8699ed6 100644
|
|
--- a/lxc/action.go
|
|
+++ b/lxc/action.go
|
|
@@ -70,7 +70,6 @@ func (c *cmdRestart) Command() *cobra.Command {
|
|
`Restart containers
|
|
|
|
The opposite of "lxc pause" is "lxc start".`))
|
|
- cmd.Hidden = true
|
|
|
|
return cmd
|
|
}
|
|
@@ -90,7 +89,6 @@ func (c *cmdStop) Command() *cobra.Command {
|
|
cmd.Short = i18n.G("Stop containers")
|
|
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
|
|
`Stop containers`))
|
|
- cmd.Hidden = true
|
|
|
|
return cmd
|
|
}
|
|
diff --git a/lxc/launch.go b/lxc/launch.go
|
|
index 5724af08..8345e552 100644
|
|
--- a/lxc/launch.go
|
|
+++ b/lxc/launch.go
|
|
@@ -23,6 +23,7 @@ func (c *cmdLaunch) Command() *cobra.Command {
|
|
`Create and start containers from images`))
|
|
cmd.Example = cli.FormatSection("", i18n.G(
|
|
`lxc launch ubuntu:16.04 u1`))
|
|
+ cmd.Hidden = false
|
|
|
|
cmd.RunE = c.Run
|
|
|