cliui

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cliui renders skillsync reports for any command framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteJSON

func WriteJSON(out io.Writer, reports []skillsync.Report) error

WriteJSON is retained for callers with core reports but no target identity.

func WriteTargetJSON

func WriteTargetJSON(out io.Writer, reports []TargetReport) error

WriteTargetJSON emits one JSON value and nothing else.

func WriteTargetText

func WriteTargetText(out io.Writer, reports []TargetReport) error

WriteTargetText renders compact, deterministic target summaries. It deliberately names only changed/conflicted work while counting unchanged skills.

func WriteText

func WriteText(out io.Writer, report skillsync.Report) error

WriteText renders one core report through the outcome-aware target renderer.

Types

type TargetReport

type TargetReport struct {
	Harness string
	Dir     string
	Report  skillsync.Report
	Err     error
}

TargetReport is one adapter target outcome. Err remains a real error for command handling and is represented as text only in JSON output.

Jump to

Keyboard shortcuts

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