Created template for server process subcommands
This commit is contained in:
8
internal/app/wwctl/server/status/main.go
Normal file
8
internal/app/wwctl/server/status/main.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package status
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
20
internal/app/wwctl/server/status/root.go
Normal file
20
internal/app/wwctl/server/status/root.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package status
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
Use: "status",
|
||||
Short: "Warewulf server status",
|
||||
Long: "Warewulf Server ",
|
||||
RunE: CobraRunE,
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
}
|
||||
|
||||
// GetRootCommand returns the root cobra.Command for the application.
|
||||
func GetCommand() *cobra.Command {
|
||||
return baseCmd
|
||||
}
|
||||
Reference in New Issue
Block a user