app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package app is oc-transcript itself: the flags, the store, the rendering and the tail. The root main.go is a shim over Main below, and carries the command's own documentation, where `go doc` looks for it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the command: it runs the line it was given and sets the exit status. A command line pflag itself rejects — an unknown flag, a missing value — exits 2, the way argparse does; a flag whose value this package rejects, and every other failure, exits 1.

Types

type Paint

type Paint struct {
	// contains filtered or unexported fields
}

Paint wraps text in SGR codes, or hands it back untouched when colour is off.

Jump to

Keyboard shortcuts

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