Documentation
¶
Index ¶
- func Exists() bool
- func GetConfigPath() string
- func PromptForCLIToolPath() (string, error)
- type Config
- type Configurator
- func (c *Configurator) Save() error
- func (c *Configurator) SetAnthropicToken(token string)
- func (c *Configurator) SetCLIToolPath(path string)
- func (c *Configurator) SetGitHubToken(token string)
- func (c *Configurator) SetGitHubUser(user string)
- func (c *Configurator) SetMonitoringSettings(interval int, repoFilter []string, assignedOnly bool)
- func (c *Configurator) SetTaskBudgets(budgets map[string]float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptForCLIToolPath ¶
PromptForCLIToolPath prompts the user for the CLI tool path
Types ¶
type Config ¶
type Config struct {
GitHub struct {
Token string
User string
}
Anthropic struct {
Token string
}
CLI struct {
Command string
Args []string
Timeout int // in seconds
}
Budgets struct {
IssueResponse float64
PRCreation float64
TestRun float64
Default float64
}
Monitor struct {
PollInterval int // in minutes
RepoFilter []string // optional list of repositories to filter on (empty means all)
AssignedIssuesOnly bool // whether to only show issues assigned to the user
AutoRespond bool // whether to automatically respond to issues
}
Logging struct {
Output io.Writer
Level string
JSONFormat bool
}
VCS struct {
Platform string // "github", "gitlab", "gogs", etc.
}
}
Config holds the application configuration
func LoadConfig ¶
LoadConfig loads the configuration from standard locations
func (*Config) SaveToFile ¶
SaveToFile saves the configuration to the specified file path
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
Configurator helps build and save configuration
func NewConfigurator ¶
func NewConfigurator() *Configurator
NewConfigurator creates a new configurator
func (*Configurator) Save ¶
func (c *Configurator) Save() error
Save saves the configuration to the user's home directory
func (*Configurator) SetAnthropicToken ¶
func (c *Configurator) SetAnthropicToken(token string)
SetAnthropicToken sets the Anthropic token
func (*Configurator) SetCLIToolPath ¶
func (c *Configurator) SetCLIToolPath(path string)
SetCLIToolPath sets the CLI tool path
func (*Configurator) SetGitHubToken ¶
func (c *Configurator) SetGitHubToken(token string)
SetGitHubToken sets the GitHub token
func (*Configurator) SetGitHubUser ¶
func (c *Configurator) SetGitHubUser(user string)
SetGitHubUser sets the GitHub user
func (*Configurator) SetMonitoringSettings ¶
func (c *Configurator) SetMonitoringSettings(interval int, repoFilter []string, assignedOnly bool)
SetMonitoringSettings sets the issue monitoring settings
func (*Configurator) SetTaskBudgets ¶
func (c *Configurator) SetTaskBudgets(budgets map[string]float64)
SetTaskBudgets sets the task budgets
Click to show internal directories.
Click to hide internal directories.