rootflags

package
v0.6.3 Latest Latest
Warning

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

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

Documentation

Overview

Package rootflags holds the persistent flags cobra binds on the root command. Owned by main; the pointer is populated by cobra before any subcommand's RunE fires. Both cmd/claude and cmd/codex consume the type without one subcommand importing the other.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	HistoryCap  int
	Verbose     bool
	AutoExit    time.Duration
	ExitAfter   int
	ThinkDelay  time.Duration
	StreamDelay time.Duration
}

Flags are the testagent-wide persistent flags. None are vendor- specific; both the claude and codex subcommands borrow the same pointer and propagate the values into engine.Globals at RunE time.

func Bind

func Bind(cmd *cobra.Command) *Flags

Bind wires the persistent flags onto cmd and returns a pointer to the populated Flags. Cobra fills in values during Execute before any subcommand's RunE runs.

Jump to

Keyboard shortcuts

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