multi

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Op

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

Op may be used to combine multiple operations. It is intended for use by Command types which need to execute more than one action.

func (Op) For

func (o Op) For(ops ...input.Operation) input.Operation

For returns a copy of m with ops stored as its list of operations to execute.

func (Op) Name

func (o Op) Name(context.Context) string

Name returns m's name. If it has input.Operation values bound to it, it will include all of the input.Operations' names in the value returned, for the purposes of reporting errors to the user.

When looking up this action to perform a list of operations, simply use "multi-operation" to get an empty operation.

func (Op) Run

func (o Op) Run(ctx context.Context, b input.Binder) error

Run runs each input.Operation bound to m.

func (Op) Type

func (o Op) Type(input.Operation)

Jump to

Keyboard shortcuts

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