cmdctx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(base context.Context, cmd command.Command, opts ...Option) command.Context

New returns a Context for the given Command.

Types

type Option

type Option func(*cmdctx)

Option is a Context option.

func WhenDone

func WhenDone(fn func(context.Context, finish.Config) error) Option

WhenDone returns an Option that makes the delegates calls to ctx.Done() to fn.

Jump to

Keyboard shortcuts

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