--format json should work in interactive mode

This commit is contained in:
Jeffrey Morgan 2023-11-14 10:22:03 -05:00
parent c1844bbee2
commit 6e0f686afa

View file

@ -542,7 +542,11 @@ func generateInteractive(cmd *cobra.Command, model string) error {
return err
}
var format string
format, err := cmd.Flags().GetString("format")
if err != nil {
return err
}
var wordWrap bool
termType := os.Getenv("TERM")
if termType == "xterm-256color" {