mirror of https://github.com/markbates/pkger.git
18 lines
188 B
Go
18 lines
188 B
Go
|
package main
|
||
|
|
||
|
import "flag"
|
||
|
|
||
|
type command interface {
|
||
|
Name() string
|
||
|
execer
|
||
|
flagger
|
||
|
}
|
||
|
|
||
|
type execer interface {
|
||
|
Exec([]string) error
|
||
|
}
|
||
|
|
||
|
type flagger interface {
|
||
|
Flags() *flag.FlagSet
|
||
|
}
|