blob: e64e57fd5b9a95c59de9a70af16bf1ec402c476e (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
//go:build test
package runner
import (
"git.ewy.one/pik/model"
"os/exec"
)
// Stub is the most minimal and useless implementation of the target interface. It only panics. Use if you need a target-compliant struct.
type Stub struct {
}
func (s Stub) File(src *model.Source) string {
//TODO implement me
panic("implement me")
}
func (s Stub) Matches(input string) bool {
//TODO implement me
panic("implement me")
}
func (s Stub) Create(src *model.Source) *exec.Cmd {
//TODO implement me
panic("implement me")
}
func (s Stub) Sub() []string {
//TODO implement me
panic("implement me")
}
func (s Stub) Label() string {
//TODO implement me
panic("implement me")
}
func (s Stub) Hydrate(src *model.Source) (model.HydratedTarget, error) {
//TODO implement me
panic("implement me")
}
func (s Stub) Tags() model.Tags {
return nil
}
func (s Stub) ShortestId() string {
//TODO implement me
panic("implement me")
}
func (s Stub) Visible() bool {
//TODO implement me
panic("implement me")
}
func (s Stub) Invocation(src *model.Source) []string {
//TODO implement me
panic("implement me")
}
type HydratedStub struct {
}
func (h HydratedStub) Matches(input string) bool {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Create(s *model.Source) *exec.Cmd {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Sub() []string {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Label() string {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Hydrate(src *model.Source) (model.HydratedTarget, error) {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Tags() model.Tags {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) ShortestId() string {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Visible() bool {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Invocation(src *model.Source) []string {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Icon() string {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Description(src *model.HydratedSource) string {
//TODO implement me
panic("implement me")
}
func (h HydratedStub) Target() model.Target {
//TODO implement me
panic("implement me")
}
|