Add to base conainer cmd

This commit is contained in:
Christian Goll
2022-02-01 16:05:34 +01:00
parent be70ee6952
commit 099ad67719
3 changed files with 7 additions and 4 deletions

View File

@@ -6,14 +6,15 @@ 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/show"
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
DisableFlagsInUseLine: true,
Use: "container COMMAND [OPTIONS]",
Short: "Container / VNFS image management",
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.",
@@ -27,6 +28,8 @@ func init() {
baseCmd.AddCommand(imprt.GetCommand())
baseCmd.AddCommand(exec.GetCommand())
baseCmd.AddCommand(delete.GetCommand())
baseCmd.AddCommand(show.GetCommand())
}
// GetRootCommand returns the root cobra.Command for the application.

View File

@@ -1,4 +1,4 @@
package list
package show
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package list
package show
import (
"github.com/hpcng/warewulf/internal/pkg/container"