add support for json color output in repl using jq, if installed (#16)

This commit is contained in:
T. von Dein
2026-05-18 13:56:07 +02:00
parent b71819f9e8
commit db50072a7b
3 changed files with 67 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ import (
)
const (
Version string = `v0.0.9`
Version string = `v0.0.10`
)
type Cluster struct {
@@ -55,6 +55,7 @@ type Config struct {
All, Verbose bool // cluster status: -a -v
Persistent, Transient, Default bool // -p -t -D cluster settings set
Force bool // ccr follower renew: -f
HaveJQ bool // determined at runtime by ourselfes
}
func NewConfig() *Config {
@@ -110,6 +111,8 @@ func (conf *Config) Init() error {
}
}
conf.HaveJQ = isJQinstalled()
conf.PrintDebug()
return nil