config

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileSystem afero.Fs = afero.NewOsFs()

FileSystem TODO: Properly inject the file system in the future (see _discover/registration)

View Source
var LookPath = exec.LookPath

Os is the operating system

Functions

func CommandExists added in v0.0.9

func CommandExists(cmd string) bool

CommandExists checks if a command exists in the system's PATH

func IsDesktop added in v0.0.9

func IsDesktop() bool

func WithConfig added in v0.0.9

func WithConfig(ctx context.Context, config *Config) context.Context

Types

type Config

type Config struct {
	GoogleApiKey string  // TODO: will likely be removed
	GeminiModel  string  // TODO: will likely be removed
	Inference    *string // An inference to use, if not set, the best inference will be used
	Model        *string // A model to use, if not set, the best model will be used
}

func GetConfig added in v0.0.9

func GetConfig(ctx context.Context) *Config

func New

func New() *Config

Jump to

Keyboard shortcuts

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