tune cluster ls: parallized and use tcp connect instead of https (#63)

This commit is contained in:
T. von Dein
2026-07-03 08:30:35 +02:00
parent b573d63c54
commit b51ee109f2
3 changed files with 59 additions and 51 deletions

View File

@@ -28,7 +28,7 @@ import (
)
const (
Version string = `v0.0.24`
Version string = `v0.0.25`
)
var (
@@ -137,6 +137,18 @@ func (conf *Config) Init() error {
return err
}
if err := conf.determineDefaultCluster(); err != nil {
return err
}
conf.HaveJQ = isJQinstalled()
conf.PrintDebug()
return nil
}
func (conf *Config) determineDefaultCluster() error {
if conf.CurrentCluster != "" {
// -C specified, set current cluster explicitly, no matter what the config says
current, exists := conf.Clusters[conf.CurrentCluster]
@@ -172,10 +184,6 @@ func (conf *Config) Init() error {
}
}
conf.HaveJQ = isJQinstalled()
conf.PrintDebug()
return nil
}