Moved wwctl service to wwctl system

This commit is contained in:
Gregory Kurtzer
2020-12-10 20:57:02 -08:00
parent 0b0efa0637
commit a5e79ae560
4 changed files with 8 additions and 6 deletions

View File

@@ -7,7 +7,8 @@ import (
"github.com/hpcng/warewulf/internal/app/wwctl/overlay"
"github.com/hpcng/warewulf/internal/app/wwctl/profile"
"github.com/hpcng/warewulf/internal/app/wwctl/ready"
"github.com/hpcng/warewulf/internal/app/wwctl/service"
"github.com/hpcng/warewulf/internal/app/wwctl/server"
"github.com/hpcng/warewulf/internal/app/wwctl/system"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"github.com/spf13/cobra"
@@ -37,8 +38,9 @@ func init() {
rootCmd.AddCommand(kernel.GetCommand())
// rootCmd.AddCommand(group.GetCommand())
rootCmd.AddCommand(profile.GetCommand())
rootCmd.AddCommand(service.GetCommand())
rootCmd.AddCommand(system.GetCommand())
rootCmd.AddCommand(ready.GetCommand())
rootCmd.AddCommand(server.GetCommand())
}

View File

@@ -1,16 +1,16 @@
package service
package system
import (
"fmt"
"github.com/hpcng/warewulf/internal/app/wwctl/service/dhcp"
"github.com/hpcng/warewulf/internal/app/wwctl/service/tftp"
"github.com/hpcng/warewulf/internal/app/wwctl/system/dhcp"
"github.com/hpcng/warewulf/internal/app/wwctl/system/tftp"
"github.com/spf13/cobra"
"os"
)
var (
baseCmd = &cobra.Command{
Use: "service",
Use: "system",
Short: "Initialize Warewulf services",
Long: "Warewulf Service Initialization",
RunE: CobraRunE,