cmd

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package cmd implements the testrig CLI commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(opts ...hooks.Option)

Execute runs the root command. A SIGINT or SIGTERM cancels cmd.Context() on the first signal so generic subcommands (go test, gotestsum) stop promptly. diagnose installs its own two-stage context: first signal finishes in-flight iterations; second signal hard-cancels. A second root signal hits the default handler and force-exits when diagnose is not running.

func NewRootCommand added in v0.0.4

func NewRootCommand(runnerOpts hooks.RunOptions) *cobra.Command

NewRootCommand constructs a new command tree dynamically based on RunOptions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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