ux

package
v0.0.0-...-1dd1f65 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package ux contains functions and types for human-readable views and observers on parts of c4t, as well as various common 'user experience' functions such as standard flag parsers.

Index

Constants

View Source
const StdinFile = "-"

StdinFile is the special file path that the plan loader treats as a request to load from stdin instead.

Variables

This section is empty.

Functions

func LoadPlan

func LoadPlan(f string) (*plan.Plan, error)

LoadPlan loads a plan pointed to by f. If f is empty or StdinFile, Load loads from standard input instead.

func LogTopError

func LogTopError(err error)

LogTopError logs err if non-nil, in a 'fatal top-level error' sort of way.

func RunOnCliPlan

func RunOnCliPlan(ctx *c.Context, r plan.Runner, outw io.Writer) error

RunOnCliPlan runs r on the plan pointed to by the arguments of ctx, dumping the resulting plan to outw.

func RunOnPlanFile

func RunOnPlanFile(ctx context.Context, r plan.Runner, inf string, outw io.Writer) error

RunOnPlanFile runs r on the plan pointed to by inf, dumping the resulting plan to outw.

Types

This section is empty.

Directories

Path Synopsis
Package dash contains the c4t console dashboard.
Package dash contains the c4t console dashboard.
Package directorobs contains a pre-packaged observer set for the test director.
Package directorobs contains a pre-packaged observer set for the test director.
Package singleobs contains observer implementations for use in the 'single-shot' c4t commands.
Package singleobs contains observer implementations for use in the 'single-shot' c4t commands.
Package stdflag contains standard command-line flag code for c4t binaries.
Package stdflag contains standard command-line flag code for c4t binaries.

Jump to

Keyboard shortcuts

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