dev
This commit is contained in:
		@ -152,8 +152,13 @@ func (p *program) Start() error {
 | 
				
			|||||||
	cfg := config.Global()
 | 
						cfg := config.Global()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if showConfig {
 | 
						if showConfig {
 | 
				
			||||||
		marshal, _ := yaml.Marshal(cfg)
 | 
							if outputFormat == "json" {
 | 
				
			||||||
		fmt.Println(string(marshal))
 | 
								marshal, _ := json.Marshal(cfg)
 | 
				
			||||||
 | 
								fmt.Println(string(marshal))
 | 
				
			||||||
 | 
							} else {
 | 
				
			||||||
 | 
								marshal, _ := yaml.Marshal(cfg)
 | 
				
			||||||
 | 
								fmt.Println(string(marshal))
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		os.Exit(0)
 | 
							os.Exit(0)
 | 
				
			||||||
		return nil
 | 
							return nil
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user