Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppName = "copycat" ConfigFileName = "config.yaml" )
View Source
const ConfigTemplate = `` /* 611-byte string literal not displayed */
ConfigTemplate is the default configuration template. Use fmt.Sprintf(ConfigTemplate, org) to fill in the organization.
Variables ¶
This section is empty.
Functions ¶
func ConfigDir ¶
ConfigDir returns the platform-appropriate config directory for copycat.
- Linux: ~/.config/copycat
- macOS: ~/Library/Application Support/copycat
- Windows: %AppData%/copycat
func ConfigExists ¶
ConfigExists checks if a config file exists at the platform config path.
func ConfigPath ¶
ConfigPath returns the full path to the XDG config file.
func DefaultConfigContent ¶
DefaultConfigContent returns the default config content with the given org.
func EnsureConfigDir ¶
func EnsureConfigDir() error
EnsureConfigDir creates the config directory if it doesn't exist.
Types ¶
type AITool ¶
type AIToolsConfig ¶
func (*AIToolsConfig) ToolByName ¶
func (c *AIToolsConfig) ToolByName(name string) (*AITool, bool)
type Config ¶
type Config struct {
GitHub GitHubConfig `yaml:"github"`
AIToolsConfig `yaml:",inline"`
Projects []Project `yaml:"projects,omitempty"`
}
func DefaultConfig ¶
DefaultConfig returns a Config struct with default values.
type GitHubConfig ¶
Click to show internal directories.
Click to hide internal directories.