package runner

import "github.com/igorhub/devcard/pkg/internal/runner"

Index

Constants

const (
	PipeStdout = "Stdout"
	PipeStderr = "Stderr"
)

Functions

func Test

func Test() int

Types

type CSS

type CSS struct {
	Values     []string
	Stylesheet string
}

type Card

type Card struct {
	Cells  []Cell
	Stdout string
	Stderr string
	// contains filtered or unexported fields
}

type Cell

type Cell struct {
	Id      string
	Content string
}

type Error

type Error struct {
	Title string
	Err   error
}

type Heartbeat

type Heartbeat struct{}

type Meta

type Meta struct {
	BuildTime string
	RunTime   string
}

type Runner

type Runner struct {
	Id          string
	DevcardName string
	Error       error
	Updates     chan any
	// contains filtered or unexported fields
}

func Start

func Start(cfg *config.Config, dir string, meta devcard.DevcardMeta) *Runner

func StartFakeRunner

func StartFakeRunner(cfg *config.Config, err error) *Runner

func (*Runner) Restart

func (r *Runner) Restart(cfg *config.Config, err error)

func (*Runner) Shutdown

func (r *Runner) Shutdown()

type Stderr

type Stderr struct {
	Line string
}

type Stdout

type Stdout struct {
	Line string
}

type Title

type Title struct {
	Title string
}

type UpdateMessage

type UpdateMessage interface {
	// contains filtered or unexported methods
}

Source Files

card.go css.go run.go runner.go test.go

Version
v0.12.0 (latest)
Published
Jun 15, 2025
Platform
linux/amd64
Imports
21 packages
Last checked
2 days ago

Tools for package owners.