config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 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"`
	JiraIntegration bool         `mapstructure:"jira_integration"` // JIRA 이슈 번호 자동 추가
	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