Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
6e0f686a
Commit
6e0f686a
authored
Nov 14, 2023
by
Jeffrey Morgan
Browse files
`--format json` should work in interactive mode
parent
c1844bbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
cmd/cmd.go
cmd/cmd.go
+5
-1
No files found.
cmd/cmd.go
View file @
6e0f686a
...
...
@@ -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"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment