config

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(cfg *Config) error

Types

type CommitGenConfig

type CommitGenConfig struct {
	Active    string                    `json:"active"`
	Providers map[string]CommitGenEntry `json:"providers"`
}

type CommitGenEntry

type CommitGenEntry struct {
	Provider string `json:"provider"`
	Model    string `json:"model"`
	APIKey   string `json:"api_key"`
	Host     string `json:"host,omitempty"` // used by ollama
}

type Config

type Config struct {
	Profiles       map[string]Profile `json:"profiles"`
	PathMappings   map[string]string  `json:"path_mappings,omitempty"`
	DefaultProfile string             `json:"default_profile,omitempty"`
	CommitGen      *CommitGenConfig   `json:"commit_gen,omitempty"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type Profile

type Profile struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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