cmd

package
v0.0.0-...-6c10b0c Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	I urgency = urgency(ttycolor.Reset)
	W urgency = urgency(ttycolor.Yellow)
	E urgency = urgency(ttycolor.Red)
	G urgency = urgency(ttycolor.Green)
)

Variables

This section is empty.

Functions

func GenName

func GenName(val int64) string

func RenderError

func RenderError(w io.Writer, err error)

func Run

func Run() (err error)

Run runs the program.

Types

type Artifact

type Artifact struct {
	// Note: the JSON tags are chosen to match the requirements
	// from jsTree.
	FileName    string `json:"text"`
	Path        string
	Icon        string `json:"icon"`
	IsDir       bool
	ContentType string
	Children    []Artifact `json:"children,omitEmpty"`
}

type RepeatSection

type RepeatSection struct {
	StartTime float64

	Duration float64

	FirstRepeatedAct int

	LastRepeatedAct int

	NumRepeats int
}

type Result

type Result struct {
	// shakespeare version used to produce the result.
	Version string

	// Play title
	Title string

	// Play author(s)
	Authors string

	// "See also" strings.
	SeeAlso []string

	// Whether a foul was detected.
	Foul bool

	// The rendered error object.
	Error string

	// The timestamp of the start of the experiment in standard format.
	Timestamp string

	// The timestamp in human format.
	TimestampHTML string

	// Duration in seconds.
	PlayDuration float64

	// Duration represented as string.
	PlayDurationVerbose string

	// Time boundaries
	MinTime float64
	MaxTime float64

	// The full config string.
	Config string

	// The config hash (FNV 32-bit).
	ConfigHash uint32

	// The config hash in a human-friendly form (easy to read aloud).
	ConfigHashHTML string

	// The prettty-printed config string.
	ConfigHTML string

	// The compiled script.
	Steps string

	// The pretty-printed compiled script.
	StepsHTML string

	// Repeat section if any.
	Repeat *RepeatSection

	// Artifacts.
	Artifacts []Artifact

	// Diffs.
	Diffs []string
}

Jump to

Keyboard shortcuts

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