--format json
should work in interactive mode
This commit is contained in:
parent
c1844bbee2
commit
6e0f686afa
1 changed files with 5 additions and 1 deletions
|
@ -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" {
|
||||
|
|
Loading…
Reference in a new issue