Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureConfigDir ¶
func EnsureConfigDir() error
EnsureConfigDir creates the config directory if it doesn't exist.
func GetConfigPath ¶
GetConfigPath returns the full path to the config file.
Types ¶
type AddConfig ¶
type AddConfig struct {
Open bool `yaml:"open"`
}
AddConfig represents the configuration for the add command.
type CloseConfig ¶ added in v0.3.0
type CloseConfig struct {
Force bool `yaml:"force"`
}
CloseConfig represents the configuration for the close command.
type Config ¶
type Config struct {
Add AddConfig `yaml:"add"`
Close CloseConfig `yaml:"close"`
Rm RmConfig `yaml:"rm"`
Editor string `yaml:"editor,omitempty"`
}
Config represents the application configuration.
func LoadOrDefault ¶
func LoadOrDefault() *Config
LoadOrDefault loads the config file, or returns default config if it doesn't exist.
func (*Config) GetEditor ¶
GetEditor returns the editor command if add.open is true, otherwise empty string.
Click to show internal directories.
Click to hide internal directories.