Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var Group = command.Register(command.Define("endpoint", ...)) + type CreateInput struct + Description string + Name string + type CreateOutput struct + Files []File + Name string + Next []Step + func Create(_ context.Context, d Deps, in CreateInput) (CreateOutput, error) + type Deps struct + Dir string + Groups func() []*endpoint.Group + OpenAPI func(g *endpoint.Group) (any, error) + type Error struct + Code int + Doc string + Reason string + type Example struct + Doc string + Flags string + type Field struct + Constraints string + Description string + Field string + In string + Required bool + Type string + type File struct + Path string + type GetInput struct + Name string + type GetOutput struct + Area area.Name + Doc string + Methods []Method + Name string + Types []Type + func Get(_ context.Context, d Deps, in GetInput) (GetOutput, error) + type ListInput struct + type ListOutput struct + Items []Summary + func List(_ context.Context, d Deps, _ ListInput) (ListOutput, error) + type Method struct + Name string + OperationID string + Path string + Permission string + Verb string + type MethodInput struct + Method string + Name string + type MethodOutput struct + AdminOnly bool + Command string + Doc string + Errors []Error + Examples []Example + Fields []Field + HTTPMethod string + Input *behavior.Schema + InputType string + Keys []string + Long string + Name string + OperationID string + Output *behavior.Schema + OutputType string + Permission string + Refuses []string + Results []Result + Route string + func MethodGet(_ context.Context, d Deps, in MethodInput) (MethodOutput, error) + type OpenAPIOutput struct + Name string + YAML string + func OpenAPIGet(_ context.Context, d Deps, in GetInput) (OpenAPIOutput, error) + type Result = behaviordsl.Result + type SpecInput struct + type SpecOutput struct + Kinds []guide.Section + func Spec(_ context.Context, _ Deps, _ SpecInput) (SpecOutput, error) + type Step struct + Command string + type Summary struct + Area area.Name + Doc string + Methods []string + Name string + type Type struct + Input string + Name string + Output string + type ValidateInput struct + type ValidateOutput struct + Fixes map[string]any + Groups int + Problems []endpoint.Problem + Valid bool + func Validate(_ context.Context, d Deps, _ ValidateInput) (ValidateOutput, error)