17 lines
360 B
Go
17 lines
360 B
Go
//go:build !windows
|
|
|
|
package files
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
)
|
|
|
|
type unsupportedExecutablePicker struct{}
|
|
|
|
func NewExecutablePicker() ExecutablePicker { return unsupportedExecutablePicker{} }
|
|
|
|
func (unsupportedExecutablePicker) ChooseExecutable(context.Context) (string, error) {
|
|
return "", errors.New("executable picker is only supported on Windows")
|
|
}
|