Files
warewulf/internal/app/wwctl/container/exec/child/root.go
Gregory Kurtzer 7826f69656 Support binds in container exec command
This addresses issue #88.
2021-08-20 14:16:16 -07:00

24 lines
541 B
Go

package child
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
Use: "__child",
Hidden: true,
RunE: CobraRunE,
Args: cobra.MinimumNArgs(1),
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
}
binds []string
)
func init() {
baseCmd.PersistentFlags().StringArrayVarP(&binds, "bind", "b", []string{}, "bind points")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}