various fixes (#70)

- dont show ccr status if license insufficient
- add automated tests
- fix config loading
- fix search output
- fix `license show` panics
- fix `ilm show` completion
- print ask passwd prompt to stderr
This commit is contained in:
T. von Dein
2026-07-06 14:22:59 +02:00
parent a07f38e945
commit 82c017144a
20 changed files with 610 additions and 27 deletions

View File

@@ -28,7 +28,7 @@ import (
)
const (
Version string = `v0.0.25`
Version string = `v0.0.26`
)
var (
@@ -121,10 +121,11 @@ func getDefaultPath() string {
func (conf *Config) Init() error {
DefaultConfig := getDefaultPath()
switch {
case fileExists(DefaultConfig):
if conf.ConfigFile == "" && fileExists(DefaultConfig) {
conf.ConfigFile = DefaultConfig
fallthrough
}
switch {
case conf.ConfigFile != "":
if err := conf.LoadConfig(); err != nil {
return err