state

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager consolidates all global state with single mutex

func Global

func Global() *Manager

Global returns the global state manager

func (*Manager) GetConfig

func (m *Manager) GetConfig() *config.Config

GetConfig gets configuration

func (*Manager) GetFlags

func (m *Manager) GetFlags() (verbose int, dryRun, ultraCompact bool, queryIntent string, budget int)

GetFlags returns current flag values

func (*Manager) GetRootCmd

func (m *Manager) GetRootCmd() *cobra.Command

GetRootCmd gets the root command

func (*Manager) GetVersion

func (m *Manager) GetVersion() string

GetVersion returns version

func (*Manager) IsVerbose

func (m *Manager) IsVerbose() bool

IsVerbose checks verbose flag

func (*Manager) SetConfig

func (m *Manager) SetConfig(cfg *config.Config)

SetConfig sets configuration

func (*Manager) SetFlags

func (m *Manager) SetFlags(verbose int, dryRun, ultraCompact bool, queryIntent string, budget int)

SetFlags sets all CLI flags atomically

func (*Manager) SetRootCmd

func (m *Manager) SetRootCmd(cmd *cobra.Command)

SetRootCmd sets the root command

func (*Manager) SetVersion

func (m *Manager) SetVersion(v string)

SetVersion sets version

Jump to

Keyboard shortcuts

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