cmdsetup

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package cmdsetup implements a real env in which to run tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRoot

func NewRoot(runners ...run.Unit) *cobra.Command

NewRoot returns a root command.

func ShutdownSupervisor added in v0.11.0

func ShutdownSupervisor()

ShutdownSupervisor drains and unregisters the process-wide artifact sink.

func SupervisorContext added in v0.11.0

func SupervisorContext() context.Context

SupervisorContext returns the process-wide supervising context. It is canceled when any panicdiag-protected goroutine recovers a panic, allowing long-running work elsewhere in the process to wind down gracefully. The context is initialized by NewRoot's PersistentPreRunE; callers that fetch it before initialization receive a never-canceled context.Background.

Types

This section is empty.

Jump to

Keyboard shortcuts

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