Documentation ¶
Overview ¶
Package terminator defines the Terminator interface, for special transforms that filter out the tail of a list of commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Terminator ¶
type Terminator interface { transform.Transform // Add relaxes the termination limit to pass-through all commands before and // including the command or subcommand. Add(context.Context, api.CmdID, api.SubCmdIdx) error }
Terminator is an Transformer that prevents commands passing-through it after a certain point in the stream.
func NewEarlyTerminator ¶
func NewEarlyTerminator() Terminator
NewEarlyTerminator returns a Terminator that will consume all commands after the last command passed to Add.
Click to show internal directories.
Click to hide internal directories.