Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDotfileToConfig ¶
AddDotfileToConfig adds a new dotfile to the config file
func SaveConfig ¶
SaveConfig saves the configuration to the file
Types ¶
type Config ¶
type Config struct {
Settings SettingsConfig `toml:"settings"`
Dotfiles map[string]string `toml:"dotfiles"`
DotfilesIgnores map[string][]string `toml:"dotfiles.ignores,omitempty"`
}
Config represents the structure of the entire configuration file
func CreateDefaultConfig ¶ added in v0.4.2
CreateDefaultConfig creates a default configuration
func LoadConfig ¶ added in v0.4.1
LoadConfig loads the configuration from the file
type GitConfig ¶ added in v0.4.1
type GitConfig struct {
Branch string `toml:"branch"`
CommitMessageFormat string `toml:"commit_message_format"`
AutoPush bool `toml:"auto_push"`
}
GitConfig represents the structure of the git configuration
type SettingsConfig ¶ added in v0.4.1
type SettingsConfig struct {
StoragePath string `toml:"storage_path"`
GitVersioning bool `toml:"git_versioning"`
ReverseSyncMode bool `toml:"reverse_sync"`
Git GitConfig `toml:"git"`
Security *security.SecurityConfig `toml:"security,omitempty"`
}
SettingsConfig represents the general settings of the application
Click to show internal directories.
Click to hide internal directories.