{"modulePath":"github.com/raymondji/git-stack-cli","version":"v0.0.0-20250919023704-4e49b115724e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Functions\n\n```go\nfunc Save(cfg *Config) (string, error)\n```\nSave returns (config file path, error)\n\n## Types\n\n```go\ntype Config struct {\n\tTheme ThemeConfig `json:\"theme\"`\n\n\t// Keys are the git repo path, e.g. \"raymondji/git-stack-cli\"\n\tRepositories map[string]RepoConfig `json:\"repositories\"`\n}\n```\n\n```go\nfunc Load() (*Config, error)\n```\n\n```go\ntype GithubConfig struct {\n\tPersonalAccessToken string `json:\"personalAccessToken\"`\n}\n```\n\n```go\ntype GitlabConfig struct {\n\tPersonalAccessToken string `json:\"personalAccessToken\"`\n}\n```\n\n```go\ntype RepoConfig struct {\n\tDefaultBranch string       `json:\"defaultBranch\"`\n\tGitlab        GitlabConfig `json:\"gitlab\"`\n\tGithub        GithubConfig `json:\"github\"`\n}\n```\n\n```go\ntype Theme struct {\n\tPrimaryColor    lipgloss.Style\n\tSecondaryColor  lipgloss.Style\n\tTertiaryColor   lipgloss.Style\n\tQuaternaryColor lipgloss.Style\n}\n```\n\n```go\nfunc NewTheme(cfg ThemeConfig) Theme\n```\n\n```go\ntype ThemeConfig struct {\n\tPrimaryColor    string `json:\"primaryColor\"`\n\tSecondaryColor  string `json:\"secondaryColor\"`\n\tTertiaryColor   string `json:\"tertiaryColor\"`\n\tQuaternaryColor string `json:\"quarternaryColor\"`\n}\n```\n\n","path":"github.com/raymondji/git-stack-cli/config","name":"config","synopsis":"","isRedistributable":true}
