cmd

package
v14.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "v0.0.0"
	Commit    = "00000000"
	BuildTime = "00000000.000000"
)

Functions

func Run

func Run(command *cobra.Command)

func RunStages

func RunStages(ctx context.Context, stages ...StageFunc) error

RunStages is a helper that ensures Run() is always executed and there is no chance of early exit so that goroutines from stages don't leak.

Types

type StageFunc

type StageFunc func(stager.Stage)

StageFunc is a function that uses the provided Stage to start goroutines.

Directories

Path Synopsis
cli
kas

Jump to

Keyboard shortcuts

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