Files
warewulf/internal/app/wwctl/container/exec/root.go
2020-12-06 09:33:36 -08:00

27 lines
523 B
Go

package exec
import (
"github.com/hpcng/warewulf/internal/app/wwctl/container/exec/child"
"github.com/spf13/cobra"
)
var (
baseCmd = &cobra.Command{
Use: "exec",
Short: "Spawn any command inside a Warewulf container",
Long: "Run a command inside a Warewulf container ",
RunE: CobraRunE,
Args: cobra.MinimumNArgs(1),
}
)
func init() {
baseCmd.AddCommand(child.GetCommand())
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}