working on a global config

This commit is contained in:
2026-06-18 17:05:42 +01:00
parent 3e92467beb
commit a980640e40
3 changed files with 58 additions and 1 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ import (
)
func main() {
output, err := os.OpenFile("./output.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0755)
// NOTE: pass all these things to cobra
output, err := os.OpenFile("./output.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o755)
if err != nil {
panic("failed to open logging file: " + err.Error())
}