verifiers

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package verifiers runs configured validation commands for a workspace.

Index

Constants

View Source
const (
	StatusCreated = "created"
	StatusUpdated = "updated"
	StatusSkipped = "skipped"
)

Variables

This section is empty.

Functions

func RenderSkill

func RenderSkill(area Area) string

func RenderText

func RenderText(report Report) string

Types

type Area

type Area struct {
	Name        string   `json:"name"`
	Path        string   `json:"path"`
	Kind        string   `json:"kind"`
	Stack       []string `json:"stack"`
	SkillName   string   `json:"skill_name"`
	Description string   `json:"description"`
}

func Detect

func Detect(workspace string) ([]Area, []string, error)

type Artifact

type Artifact struct {
	Name   string `json:"name"`
	Path   string `json:"path"`
	Status string `json:"status"`
}

type Options

type Options struct {
	Workspace string
	Target    string
	Force     bool
	DryRun    bool
}

type Report

type Report struct {
	Kind       string     `json:"kind"`
	Action     string     `json:"action"`
	Status     string     `json:"status"`
	Workspace  string     `json:"workspace"`
	Target     string     `json:"target"`
	TargetRoot string     `json:"target_root"`
	DryRun     bool       `json:"dry_run"`
	Force      bool       `json:"force"`
	Areas      []Area     `json:"areas"`
	Artifacts  []Artifact `json:"artifacts"`
	Created    []string   `json:"created"`
	Updated    []string   `json:"updated"`
	Skipped    []string   `json:"skipped"`
	Warnings   []string   `json:"warnings,omitempty"`
	NextStep   string     `json:"next_step"`
}

func Initialize

func Initialize(options Options) (Report, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL