Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CLICommands ¶ added in v0.7.5
func CLICommands() map[string]blit.CLICommand
CLICommands returns auto-generated CLI commands for config fields.
func Editor ¶ added in v0.7.5
func Editor() *blit.ConfigEditor
Editor returns a blit.ConfigEditor auto-generated from struct tags.
func RemoveRepo ¶
Types ¶
type Config ¶
type Config struct {
RepoEntries []RepoEntry `yaml:"repos" blit:"label=Repos,group=Config,hint=Watched repos (owner/repo format)"`
Interval int `yaml:"interval" blit:"label=Interval (sec),group=Polling,hint=Poll frequency (min 5),default=30,min=5"`
Theme string `yaml:"theme,omitempty" blit:"label=Theme,group=Appearance,hint=Theme name (use ctrl+t to pick),readonly=true"`
}
Config holds the application configuration. blit struct tags enable auto-generated ConfigEditor and CLI commands.
func (*Config) ExplicitPaths ¶ added in v0.2.0
ExplicitPaths returns a map of remote -> local path for repos with explicit paths.
type RepoEntry ¶ added in v0.2.0
RepoEntry represents a watched repo with an optional local path override.
func (RepoEntry) MarshalYAML ¶ added in v0.2.0
MarshalYAML writes as a plain string if no path is set.
func (*RepoEntry) UnmarshalYAML ¶ added in v0.2.0
UnmarshalYAML supports both string and object formats:
repos:
- owner/repo
- name: owner/repo
path: /home/user/projects/repo
Click to show internal directories.
Click to hide internal directories.