Merge pull request #140 from elguero/main

Fix panic when failing to include the command to be run by the
This commit is contained in:
Gregory M. Kurtzer
2021-09-20 18:55:31 -07:00
committed by GitHub

View File

@@ -7,13 +7,13 @@ import (
var (
baseCmd = &cobra.Command{
Use: "exec [flags] [container name]",
Use: "exec [flags] [container name] [command]",
Short: "Run a command inside of a Warewulf container",
Long: "This command will allow you to run any command inside of a given\n" +
"warewulf container. This is commonly used with an interactive shell such as /bin/bash\n" +
"to run a virtual environment within the container.",
RunE: CobraRunE,
Args: cobra.MinimumNArgs(1),
Args: cobra.MinimumNArgs(2),
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
}
binds []string