config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSystemPrompt string

Functions

func Dir

func Dir() (string, error)

Dir returns the jernel config directory path

func Init

func Init() error

Init ensures the config directory exists with all necessary files

func LoadSystemPrompt

func LoadSystemPrompt() (string, error)

LoadSystemPrompt reads the system prompt from disk

func Path

func Path() (string, error)

Path returns the full path to config.yaml

func Save

func Save(cfg *Config) error

Save writes the config to disk

func SystemPromptPath

func SystemPromptPath() (string, error)

SystemPromptPath returns the path to the system prompt file

Types

type Config

type Config struct {
	Provider       string `yaml:"provider"`
	Model          string `yaml:"model"`
	DefaultPersona string `yaml:"default_persona"`
}

Config holds application-level settings

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns sensible defaults

func Load

func Load() (*Config, error)

Load reads the config file, returning defaults if it doesn't exist

Jump to

Keyboard shortcuts

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