harness

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package harness implements the `harness` command group.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdHarness

func NewCmdHarness(inv *cmd.Invocation) *cmd.Command

NewCmdHarness creates the `harness` command.

func NewCmdHarnessContext

func NewCmdHarnessContext(inv *cmd.Invocation) *cmd.Command

NewCmdHarnessContext creates the `harness context` command.

func NewCmdHarnessExec added in v0.4.0

func NewCmdHarnessExec(inv *cmd.Invocation) *cmd.Command

NewCmdHarnessExec creates the `harness exec` command.

func NewCmdHarnessInstall

func NewCmdHarnessInstall(inv *cmd.Invocation) *cmd.Command

NewCmdHarnessInstall creates the `harness install` command.

Types

type ContextOpts

type ContextOpts struct {
	IO      iostreams.IOStreams
	Profile *profile.Profile
	Output  *format.Outputter
}

ContextOpts defines the options for the `harness context` command.

type ExecOpts added in v0.4.0

type ExecOpts struct {
	IO     iostreams.IOStreams
	DryRun bool

	// AllowDelete holds the raw --allow-delete values (repeatable + CSV).
	AllowDelete []string

	// Argv is the child command and its arguments (everything after `--`).
	Argv []string

	// Injectable seams for tests.
	Store *execsession.Store
	PID   int
	Run   func(ctx context.Context, argv, env []string, io iostreams.IOStreams) (int, error)
}

ExecOpts defines the options for the `harness exec` command.

type InstallOpts

type InstallOpts struct {
	IO      iostreams.IOStreams
	Profile *profile.Profile
	Output  *format.Outputter
	Agent   *skills.AgentSpec
	Global  bool
	DryRun  bool
}

InstallOpts defines the options for the `harness install` command.

Jump to

Keyboard shortcuts

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