Moved wwctl service to wwctl system
This commit is contained in:
@@ -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())
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
Reference in New Issue
Block a user