cli

package
v6.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package cli assembles Stroppy's reusable command interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(
	ctx context.Context,
	options *Options,
	args []string,
	stdout, stderr io.Writer,
) error

Execute runs one command tree with caller-owned context and streams.

func ExitCodeFor

func ExitCodeFor(cancelCode int, err error) int

ExitCodeFor maps a command error to its process exit status.

func NewRoot

func NewRoot(options *Options) *cobra.Command

NewRoot creates an independent Stroppy command tree.

func ValidateWorkloadName

func ValidateWorkloadName(name string) error

Types

type Options

type Options struct {
	Catalog         *bench.Catalog
	DefaultWorkload string
	ExtraCommands   []*cobra.Command
	ManagedCatalog  *workloadcatalog.Store
	Version         string
	BuildDigest     string
	IncludeList     bool
	RegisteredRun   bool
}

Options selects installed or standalone command behavior.

Jump to

Keyboard shortcuts

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