first commit
This commit is contained in:
21
input/input.go
Normal file
21
input/input.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package input
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type ReadInput interface {
|
||||
Bind(ctx context.Context, def *Definition) error
|
||||
|
||||
ReadOption(ctx context.Context, name string) (Value, error)
|
||||
SetOption(name string, value Value)
|
||||
|
||||
ReadArgument(ctx context.Context, name string) (Value, error)
|
||||
SetArgument(name string, value Value)
|
||||
}
|
||||
|
||||
type Input interface {
|
||||
Option(ctx context.Context, name string) Value
|
||||
Argument(ctx context.Context, name string) Value
|
||||
ReadInput
|
||||
}
|
||||
Reference in New Issue
Block a user