builtins

package
v0.0.0-...-a4a517a Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllCommandsAndLogCommand

func AllCommandsAndLogCommand(args []string)

AllCommandsAndLogCommand implements "all-commands" subcommand, which lists all log files with their command lines.

func FailIfInZenlog

func FailIfInZenlog()

FailIfInZenlog quites the current process with an error code with an error message if it's running in a zenlog session.

func FailUnlessInZenlog

func FailUnlessInZenlog()

FailUnlessInZenlog quites the current process with an error code with an error message unless it's running in a zenlog session.

func InZenlog

func InZenlog() bool

InZenlog true if the current process is running in a zenlog session.

func LoggerPipe

func LoggerPipe()

LoggerPipe prints named pile filename to the logger. Implies FailUnlessInZenlog().

func MaybeRunBuiltin

func MaybeRunBuiltin(command string, args []string)

MaybeRunBuiltin runs a builtin command if a given command is a builtin subcommand.

func OuterTty

func OuterTty()

OuterTty prints the outer TTY device filename. Implies FailUnlessInZenlog().

func WriteToLogger

func WriteToLogger()

WriteToLogger read from STDIN and writes to the current logger. Implies FailUnlessInZenlog().

func WriteToOuter

func WriteToOuter()

WriteToOuter read from STDIN and writes to the console, without logging. Implies FailUnlessInZenlog().

Types

This section is empty.

Directories

Path Synopsis
cc

Jump to

Keyboard shortcuts

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