fix(cli): return ask directory path

This commit is contained in:
Denis Gukov 2024-09-30 01:29:58 +05:00
parent 4afe568db6
commit 8dd85afa15

View File

@ -168,8 +168,8 @@ func SaveConfig(config IConfig, defaultFilename string, requiredConfigPath strin
configDirectory = filepath.Join(configDirectory, "semaphore")
}
askValue("Config output directory", configDirectory, &configDirectory)
configPath = filepath.Join(configDirectory, defaultFilename)
askValue("Config output file", configPath, &configPath)
} else {
configPath = requiredConfigPath
}