Add container rename support
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
7d17bcc6fa
commit
d262ec10ef
@@ -7,23 +7,22 @@ import (
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/container/exec"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/container/imprt"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/container/list"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/container/rename"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/container/shell"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/container/show"
|
||||
"github.com/hpcng/warewulf/internal/app/wwctl/container/syncuser"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "container COMMAND [OPTIONS]",
|
||||
Short: "Container / VNFS image management",
|
||||
Long: "Starting with version 4, Warewulf uses containers to build the bootable VNFS\n" +
|
||||
"node images. These commands will help you import, manage, and transform\n" +
|
||||
"containers into bootable Warewulf VNFS images.",
|
||||
Aliases: []string{"vnfs"},
|
||||
}
|
||||
)
|
||||
var baseCmd = &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "container COMMAND [OPTIONS]",
|
||||
Short: "Container / VNFS image management",
|
||||
Long: "Starting with version 4, Warewulf uses containers to build the bootable VNFS\n" +
|
||||
"node images. These commands will help you import, manage, and transform\n" +
|
||||
"containers into bootable Warewulf VNFS images.",
|
||||
Aliases: []string{"vnfs"},
|
||||
}
|
||||
|
||||
func init() {
|
||||
baseCmd.AddCommand(build.GetCommand())
|
||||
@@ -35,7 +34,7 @@ func init() {
|
||||
baseCmd.AddCommand(show.GetCommand())
|
||||
baseCmd.AddCommand(syncuser.GetCommand())
|
||||
baseCmd.AddCommand(copy.GetCommand())
|
||||
|
||||
baseCmd.AddCommand(rename.GetCommand())
|
||||
}
|
||||
|
||||
// GetRootCommand returns the root cobra.Command for the application.
|
||||
|
||||
Reference in New Issue
Block a user