Internal
internal/app/specsource
Package specsource loads exact Markdown source for agent-facing commands.
import "github.com/nilstate/scafld/v2/internal/app/specsource"
Package specsource loads exact Markdown source for agent-facing commands.
Variables
Functions
func Load(ctx context.Context, store any, taskID string) (spec.Source, error)
Source: internal/app/specsource/specsource.go:23
Load returns the exact Markdown source for taskID.
Types
type Loader
Source: internal/app/specsource/specsource.go:18
Loader is implemented by stores that can return the parsed spec and its exact Markdown source in one operation.
type Loader interface {
LoadSource(context.Context, string) (spec.Source, error)
}Methods
LoadSource func(context.Context, string) (spec.Source, error)
