terminator

package
v0.0.0-...-9202be0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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