config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath는 설정 파일 경로를 반환합니다

func Save

func Save(cfg *Config) error

Save는 설정을 파일에 저장합니다

Types

type ClaudeConfig

type ClaudeConfig struct {
	APIKey    string `mapstructure:"api_key"`
	Model     string `mapstructure:"model"`
	MaxTokens int    `mapstructure:"max_tokens"`
}

ClaudeConfig는 Claude 관련 설정입니다

type Config

type Config struct {
	Provider       string       `mapstructure:"provider"`
	CommitLanguage string       `mapstructure:"commit_language"` // AI가 생성하는 커밋 메시지 언어
	UILanguage     string       `mapstructure:"ui_language"`     // CLI UI 메시지 언어
	Template       string       `mapstructure:"template"`
	GPGSign        bool         `mapstructure:"gpg_sign"` // GPG 서명 사용 여부
	OpenAI         OpenAIConfig `mapstructure:"openai"`
	Claude         ClaudeConfig `mapstructure:"claude"`
}

Config는 애플리케이션 설정을 담는 구조체입니다

func Default

func Default() *Config

Default는 기본 설정을 반환합니다

func Load

func Load() (*Config, error)

Load는 설정 파일을 로드합니다

type OpenAIConfig

type OpenAIConfig struct {
	APIKey    string `mapstructure:"api_key"`
	Model     string `mapstructure:"model"`
	MaxTokens int    `mapstructure:"max_tokens"`
}

OpenAIConfig는 OpenAI 관련 설정입니다

Jump to

Keyboard shortcuts

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