Commit 6e0f686a authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

`--format json` should work in interactive mode

parent c1844bbe
...@@ -542,7 +542,11 @@ func generateInteractive(cmd *cobra.Command, model string) error { ...@@ -542,7 +542,11 @@ func generateInteractive(cmd *cobra.Command, model string) error {
return err return err
} }
var format string format, err := cmd.Flags().GetString("format")
if err != nil {
return err
}
var wordWrap bool var wordWrap bool
termType := os.Getenv("TERM") termType := os.Getenv("TERM")
if termType == "xterm-256color" { if termType == "xterm-256color" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment