Compare commits
1 Commits
2bbb6b00c8
...
dev
Author | SHA1 | Date | |
---|---|---|---|
010bb24581 |
@ -152,8 +152,13 @@ func (p *program) Start() error {
|
||||
cfg := config.Global()
|
||||
|
||||
if showConfig {
|
||||
marshal, _ := yaml.Marshal(cfg)
|
||||
fmt.Println(string(marshal))
|
||||
if outputFormat == "json" {
|
||||
marshal, _ := json.Marshal(cfg)
|
||||
fmt.Println(string(marshal))
|
||||
} else {
|
||||
marshal, _ := yaml.Marshal(cfg)
|
||||
fmt.Println(string(marshal))
|
||||
}
|
||||
os.Exit(0)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user