review

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotPromptable is returned when nobody can answer the prompts.
	ErrNotPromptable = errors.NewSentinel("review.not_promptable", "review: an interactive terminal is needed")

	// ErrInputEnded is returned when piped input runs out mid-verdict. Nothing
	// is recorded: GTB reports the input running out as setup.ErrInputEnded,
	// and huh (v2.0.3) panics on an out-of-range choice there; either way the
	// answer is one nobody gave.
	ErrInputEnded = errors.NewSentinel("review.input_ended", "review: the input ended before a verdict was given")
)

Functions

func NewCmdReview

func NewCmdReview(props *props.Props) *setup.Command

func RunReview

func RunReview(ctx context.Context, p *props.Props, opts *ReviewOptions, _ []string) error

RunReview walks the shadow answers waiting for a verdict (spec 0023).

func Walk

func Walk(ctx context.Context, streams props.IO, q *review.Queue) error

Walk offers each waiting answer in turn until the queue is empty or the reviewer quits, then prints the tally.

Types

type ReviewOptions

type ReviewOptions struct {
	Server string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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