Add file for non-Linux placeholder.

This commit is contained in:
Gregory Kurtzer
2020-12-06 09:39:48 -08:00
parent 3041fcac6b
commit bbfe1023e9
2 changed files with 15 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
// + build linux
// +build linux
package child

View File

@@ -0,0 +1,14 @@
// +build !linux
package child
import (
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"github.com/spf13/cobra"
)
func CobraRunE(cmd *cobra.Command, args []string) error {
wwlog.Printf(wwlog.ERROR, "This command does not work on non-Linux hosts\n")
return nil
}