Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatGpt ¶
type ChatGpt struct { EndPoint Expander `yaml:"EndPoint" json:"end_point,omitempty"` APIKey Expander `yaml:"APIKey" json:"api_key,omitempty"` AccessToken Expander `yaml:"AccessToken" json:"access_token,omitempty"` Model Expander `yaml:"Model" json:"model,omitempty"` Proxy Expander `yaml:"Proxy" json:"proxy,omitempty"` }
type Config ¶
type Config struct { DebugMode bool `yaml:"DebugMode" json:"debug_mode,omitempty"` LogPath Expander `yaml:"LogPath" json:"log_path,omitempty"` ChatGpt *ChatGpt `yaml:"ChatGpt" json:"chat_gpt,omitempty"` SummaryRules *SummaryRules `yaml:"SummaryRules" json:"summary_rules,omitempty"` Prompt *Prompt `yaml:"Prompt" json:"prompt,omitempty"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfig ¶
func (*Config) MergeDefault ¶
func (*Config) SaveConfig ¶
type Prompt ¶
type Prompt struct { System Expander `yaml:"System" json:"system,omitempty"` CodeSummary Expander `yaml:"CodeSummary" json:"code_summary,omitempty"` SummaryTable Expander `yaml:"SummaryTable" json:"summary_table,omitempty"` FinalSummary Expander `yaml:"FinalSummary" json:"final_summary,omitempty"` }
type SummaryRules ¶
type SummaryRules struct { Include []string `yaml:"Include" json:"include,omitempty"` Exclude []string `yaml:"Exclude" json:"exclude,omitempty"` OutDir Expander `yaml:"OutDir" json:"out_dir,omitempty"` OutFileName Expander `yaml:"OutFileName" json:"out_file_name,omitempty"` }
func (*SummaryRules) GetReportDir ¶
func (rule *SummaryRules) GetReportDir() string
func (*SummaryRules) GetReportPath ¶
func (rule *SummaryRules) GetReportPath(codeFolder string) string
Click to show internal directories.
Click to hide internal directories.