mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 04:54:18 +02:00
add support for json color output in repl using jq, if installed (#16)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user