Add ability to configure host file on the controller node

This commit is contained in:
Gregory Kurtzer
2020-12-19 00:39:19 -08:00
parent 5c354af31d
commit 7af8b03cf7
3 changed files with 108 additions and 0 deletions

View File

@@ -1 +1,22 @@
package hosts
import "github.com/spf13/cobra"
var (
baseCmd = &cobra.Command{
Use: "hosts",
Short: "NFS configuration",
Long: "NFS Config",
RunE: CobraRunE,
}
SetShow bool
)
func init() {
baseCmd.PersistentFlags().BoolVarP(&SetShow, "show", "s", false, "Show configuration (don't update)")
}
// GetRootCommand returns the root cobra.Command for the application.
func GetCommand() *cobra.Command {
return baseCmd
}