2 Commits

Author SHA1 Message Date
b5d069112f Update docs
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
ci/woodpecker/push/publish-docs Pipeline failed
2025-11-17 15:56:28 -06:00
f56393c84c fix small things 2025-11-17 15:55:51 -06:00
3 changed files with 4 additions and 4 deletions

0
docs/content/cli/_index.md Executable file → Normal file
View File

View File

@@ -239,10 +239,10 @@ func setLoggingOptions(backyKoanf *koanf.Koanf, opts *ConfigOpts) {
isVerboseLoggingSetInConfig := backyKoanf.Bool(getLoggingKeyFromConfig("verbose"))
// if log file is set in config file and not set on command line, use "./backy.log"
logFile := "./backy.log"
if opts.LogFilePath == "" && backyKoanf.Exists(getLoggingKeyFromConfig("file")) {
logFile = backyKoanf.String(getLoggingKeyFromConfig("file"))
opts.LogFilePath = logFile
opts.LogFilePath = backyKoanf.String(getLoggingKeyFromConfig("file"))
} else {
opts.LogFilePath = "./backy.log"
}
zerolog.SetGlobalLevel(zerolog.InfoLevel)

View File

@@ -81,7 +81,7 @@ func (opts *ConfigOpts) ListCommandList(list string) {
// bool for commands not found
// gets set to false if a command is not found
// set to true if the command is found
var listFound bool = false
var listFound bool
var listInfo *CmdList
// check commands in file against cmd
for listInFile, l := range opts.CmdConfigLists {