runtime

package
v0.179.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigWriteTarget

func ConfigWriteTarget(toProject bool) (*viper.Viper, string, error)

ConfigWriteTarget returns a fresh Viper instance for a userspace baseline or sparse project override without writing the fully merged runtime config.

func FileExists

func FileExists(path string) bool

func KeybindingsConfigWritePath

func KeybindingsConfigWritePath(toProject bool) (string, error)

getKeybindingsConfigWritePath returns the path to write keybindings to. Keybindings are a userspace-only concern, so writes target ~/.infer/ by default; --project (toProject) opts into a project-level override instead.

func PluginsConfigPath

func PluginsConfigPath() string

getPluginsConfigPath returns the path of the plugins registry. Plugins are userspace-only, so unlike other sidecars there is no project-first search.

func ProjectFlag

func ProjectFlag(cmd *cobra.Command) bool

GetProjectFlag checks for the --project flag on the current command or any parent command. Userspace-first model (issue #680): config writes target the home ~/.infer/ baseline by default; --project opts into a project override.

Types

type State

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

State owns configuration and logging initialized for one Cobra command tree. Cobra executes initialization before RunE, so no synchronization is needed.

func NewState

func NewState() *State

func (*State) Config

func (s *State) Config() *config.Config

func (*State) ConfigureDaemonLogging

func (s *State) ConfigureDaemonLogging()

func (*State) DisableStdoutLogging

func (s *State) DisableStdoutLogging()

func (*State) Initialize

func (s *State) Initialize(root *cobra.Command) error

func (*State) Viper

func (s *State) Viper() *viper.Viper

Jump to

Keyboard shortcuts

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