Files
spellbook/internal/models/models.go
T
abelith 0e0a4d34ac feat
- implemented spellcaster
2026-08-03 05:09:16 +05:00

34 lines
406 B
Go

package models
import (
"io"
"time"
)
type Spell struct {
Name string
Spell string
Tags []string
}
type SpellCast struct {
Spell Spell
Args map[string]string
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
}
type CastResult struct {
ExitCode int
Err error
Duration time.Duration
Meta map[string]any
}
type SearchQuery struct {
Cursor int
Limit int
Tags []string
}