-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.go
39 lines (31 loc) · 911 Bytes
/
init.go
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
package next
import (
"github.com/hiro4bbh/sticker/sticker-util/common"
)
// Command is the interface for an abstract LabelNext command.
type Command interface {
Parse(args []string) ([]string, error)
Run() error
}
// TestCommand is the interface for an abstract TestLabelNextCommand.
type TestCommand interface {
Command
}
var newTestCommand = func(opts common.Options) TestCommand {
panic("unsupported @testNext")
}
// NewTestCommand returns an new TestCommand.
func NewTestCommand(opts common.Options) TestCommand {
return newTestCommand(opts)
}
// TrainCommand is the interface for an abstract TrainLabelNextCommand.
type TrainCommand interface {
Command
}
var newTrainCommand = func(opts common.Options) TrainCommand {
panic("unsupported @trainNext")
}
// NewTrainCommand returns an new TrainCommand.
func NewTrainCommand(opts common.Options) TrainCommand {
return newTrainCommand(opts)
}