first commit

This commit is contained in:
2020-10-25 10:00:59 +03:00
commit 0bd6f67397
80 changed files with 4741 additions and 0 deletions

21
input/input.go Normal file
View 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
}