wwlog provides named loggers for each level, which requires less code and is clearer than wwlog.Printf. The code has included a mix of both, but this commit consolidates existing code on the per-level functions. Signed-off-by: Jonathon Anderson <janderson@ciq.co>
16 lines
273 B
Go
16 lines
273 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package exec
|
|
|
|
import (
|
|
"github.com/hpcng/warewulf/internal/pkg/wwlog"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func CobraRunE(cmd *cobra.Command, args []string) error {
|
|
wwlog.Error("This command does not work on non-Linux hosts\n")
|
|
|
|
return nil
|
|
}
|