runner

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List added in v1.0.3

func List(opts Options, target string) int

func ManagedCheck added in v1.0.5

func ManagedCheck(opts Options, target string) int

func ManagedList added in v1.0.5

func ManagedList(opts Options, target string) int

func ManagedTree added in v1.0.5

func ManagedTree(opts Options, target string) int

func Run

func Run(opts Options) int

Types

type ListResult added in v1.0.3

type ListResult struct {
	OK          bool                    `json:"ok"`
	Strict      bool                    `json:"strict"`
	Root        string                  `json:"root"`
	Path        string                  `json:"path"`
	FrontMatter []frontmatter.Item      `json:"frontMatter"`
	Diagnostics []diagnostic.Diagnostic `json:"diagnostics"`
}

type ManagedCheckResult added in v1.0.5

type ManagedCheckResult struct {
	Managed     bool                    `json:"managed"`
	Root        string                  `json:"root"`
	Config      string                  `json:"config,omitempty"`
	Path        string                  `json:"path"`
	Diagnostics []diagnostic.Diagnostic `json:"diagnostics"`
}

type ManagedListResult added in v1.0.5

type ManagedListResult struct {
	Root        string                  `json:"root"`
	Config      string                  `json:"config,omitempty"`
	Path        string                  `json:"path"`
	Files       []string                `json:"files"`
	Diagnostics []diagnostic.Diagnostic `json:"diagnostics"`
}

type ManagedTreeNode added in v1.0.5

type ManagedTreeNode struct {
	Name     string            `json:"name"`
	Path     string            `json:"path"`
	Type     string            `json:"type"`
	Children []ManagedTreeNode `json:"children,omitempty"`
}

type ManagedTreeResult added in v1.0.5

type ManagedTreeResult struct {
	Root        string                  `json:"root"`
	Config      string                  `json:"config,omitempty"`
	Path        string                  `json:"path"`
	Tree        *ManagedTreeNode        `json:"tree,omitempty"`
	Diagnostics []diagnostic.Diagnostic `json:"diagnostics"`
}

type Options

type Options struct {
	ConfigPath string
	Root       string
	Strict     bool
	Format     string
	NoColor    bool
	Stdout     io.Writer
	Stderr     io.Writer
}

Jump to

Keyboard shortcuts

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