feat: add stop command to terminate the clipboard watcher daemon
This commit is contained in:
@ -37,11 +37,15 @@ func LoadConfig() (Config, string) {
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
defer file.Close()
|
||||
d := yaml.NewDecoder(file)
|
||||
if err := d.Decode(&cfg); err == nil {
|
||||
file.Close()
|
||||
if cfg.Logging.Path == "" {
|
||||
cfg.Logging.Path = logFilePath()
|
||||
}
|
||||
return cfg, path
|
||||
}
|
||||
file.Close()
|
||||
}
|
||||
|
||||
cfg.Logging.Format = "console"
|
||||
|
Reference in New Issue
Block a user