32 lines
787 B
Go
32 lines
787 B
Go
package container
|
|
|
|
import (
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/container/build"
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/container/exec"
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/container/list"
|
|
"github.com/hpcng/warewulf/internal/app/wwctl/container/pull"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
baseCmd = &cobra.Command{
|
|
Use: "container",
|
|
Short: "Container / VNFS image management",
|
|
Long: "Virtual Node File System (VNFS) image management",
|
|
}
|
|
test bool
|
|
)
|
|
|
|
func init() {
|
|
baseCmd.AddCommand(build.GetCommand())
|
|
baseCmd.AddCommand(list.GetCommand())
|
|
baseCmd.AddCommand(pull.GetCommand())
|
|
baseCmd.AddCommand(exec.GetCommand())
|
|
|
|
}
|
|
|
|
// GetRootCommand returns the root cobra.Command for the application.
|
|
func GetCommand() *cobra.Command {
|
|
return baseCmd
|
|
}
|