Documentation
¶
Index ¶
- Constants
- Variables
- func Coerce(schema *jsonschema.Schema, values map[string]string) (map[string]any, error)
- func Form[T any](ctx dbos.DBOSContext, p Prompter, key, message string, defaults T, ...) (T, string, error)
- func IsInvalid(err error) bool
- func SchemaFor[T any](defaults T) (*jsonschema.Schema, error)
- type Prompt
- type Prompter
- type Reply
Constants ¶
View Source
const ( ActionAccept = "accept" ActionCancel = "cancel" ActionDecline = "decline" )
Variables ¶
View Source
var ErrInvalid = errors.New("invalid form input")
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.