42 lines
713 B
Go
42 lines
713 B
Go
//go:build !windows
|
|
|
|
package windows
|
|
|
|
import (
|
|
"context"
|
|
"runtime"
|
|
"time"
|
|
|
|
"softbox.local/core/application/launch"
|
|
)
|
|
|
|
type platformStub struct{}
|
|
|
|
func newPlatform() Platform {
|
|
return platformStub{}
|
|
}
|
|
|
|
func (platformStub) OS() string {
|
|
return runtime.GOOS
|
|
}
|
|
|
|
func (platformStub) Edition() Edition {
|
|
return EditionLegacy
|
|
}
|
|
|
|
func (platformStub) IsCompatible(string) (bool, error) {
|
|
return false, ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) IsRunning(string, string) (bool, error) {
|
|
return false, ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) WaitForExit(context.Context, string, string, time.Duration) error {
|
|
return ErrUnsupported
|
|
}
|
|
|
|
func (platformStub) Start(launch.Command) (int, error) {
|
|
return 0, ErrUnsupported
|
|
}
|