finish

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Err     error
	Runtime time.Duration
}

Config is the configuration for finishing a command.

func Configure

func Configure(opts ...Option) Config

Configure returns a Config from the provided Options.

type Option

type Option func(*Config)

Option is a Config option

func WithError

func WithError(err error) Option

WithError returns an Option that adds an error to a Config.

func WithRuntime

func WithRuntime(d time.Duration) Option

WithRuntime returns an Option that adds the execution runtime to a Config.

Jump to

Keyboard shortcuts

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