summaryrefslogtreecommitdiff
path: root/model/runner.go
blob: eda2505cadf933197675d3cee12916e5dba53221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package model

import (
	"io/fs"
)

// Runner knows how to go from a file to an exec.Cmd
// these are mostly used for pikdex but other runners can use them as well
// these have to be registered in main.go
type Runner interface {
	Wants(fs fs.FS, file string, entry fs.DirEntry) (bool, error)
	CreateTarget(fs fs.FS, source string, file string, entry fs.DirEntry) (Target, error)
}