v1.0.0
Golang lint / docker-smoke (push) Successful in 17s
Golang lint / lint (push) Failing after 18s

This commit is contained in:
2026-08-06 12:22:44 +03:00
parent a47ac72db0
commit bb2fa57bbe
21 changed files with 1075 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package ssh
import (
"os"
"path/filepath"
)
func getConfigOrEmpty() string {
homeDir, err := os.UserHomeDir()
if err != nil {
return ""
}
configPath := filepath.Join(homeDir, ".ssh", "config")
file, err := os.Open(configPath)
if err != nil {
return ""
}
_ = file.Close()
return configPath
}