Revert "removed unused container child"

This reverts commit 30bc445a89.
This commit is contained in:
Gregory Kurtzer
2022-03-02 19:53:10 -08:00
parent 1a12ee9b4c
commit b60cacbd0f
4 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package child
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
DisableFlagsInUseLine: true,
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
}