You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
524 B
23 lines
524 B
package input
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitoa.ru/go-4devs/console/input/value"
|
|
)
|
|
|
|
type ReadInput interface {
|
|
Bind(ctx context.Context, def *Definition) error
|
|
|
|
ReadOption(ctx context.Context, name string) (value.Value, error)
|
|
SetOption(name string, v value.Value)
|
|
|
|
ReadArgument(ctx context.Context, name string) (value.Value, error)
|
|
SetArgument(name string, v value.Value)
|
|
}
|
|
|
|
type Input interface {
|
|
Option(ctx context.Context, name string) value.Value
|
|
Argument(ctx context.Context, name string) value.Value
|
|
ReadInput
|
|
}
|
|
|