blob: b503381b0a133eb68a67ff8e8834689c3b0307d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package model
import (
"os/exec"
)
type Target interface {
Matches
Create(s *Source) *exec.Cmd
Sub() []string
Label() string
Hydrate(src *Source) (HydratedTarget, error)
Tags() Tags
ShortestId() string
Visible() bool
Invocation(src *Source) []string
}
type HydratedTarget interface {
Target
Icon() string
Description() string
Target() Target
}
|