Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Journal JournalConfig `mapstructure:"journal"`
Standup StandupConfig `mapstructure:"standup"`
SearchWindowDays int `mapstructure:"search_window_days"`
CompanyTag string `mapstructure:"company_tag"`
}
Config represents the complete application configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a configuration with sensible defaults
func Load ¶
Load loads configuration from file, environment variables, and defaults Precedence: CLI flags (passed separately) > env vars > config file > defaults
func (*Config) ExpandPath ¶
ExpandPath expands relative paths to absolute paths
func (*Config) JournalDir ¶
JournalDir returns the absolute path to the journal directory
func (*Config) StandupDir ¶
StandupDir returns the absolute path to the standup directory
type CreateCommand ¶
type CreateCommand struct {
Cmd string `mapstructure:"cmd"`
}
CreateCommand contains the command to create new notes
type JournalConfig ¶
type JournalConfig struct {
Dir string `mapstructure:"dir"`
WorkDoneSections []string `mapstructure:"work_done_sections"`
SkipText []string `mapstructure:"skip_text"`
LinkPreviousTitles []string `mapstructure:"link_previous_titles"`
LinkNextTitles []string `mapstructure:"link_next_titles"`
Create CreateCommand `mapstructure:"create"`
}
JournalConfig contains configuration for journal notes
type StandupConfig ¶
type StandupConfig struct {
Dir string `mapstructure:"dir"`
WorkDoneSection string `mapstructure:"work_done_section"`
SkipText []string `mapstructure:"skip_text"`
LinkPreviousTitles []string `mapstructure:"link_previous_titles"`
LinkNextTitles []string `mapstructure:"link_next_titles"`
Create CreateCommand `mapstructure:"create"`
}
StandupConfig contains configuration for standup notes
Click to show internal directories.
Click to hide internal directories.