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
55b5f5dc
Unverified
Commit
55b5f5dc
authored
Jul 20, 2023
by
Michael Yang
Committed by
GitHub
Jul 20, 2023
Browse files
ctrl+c on empty line exits (#135)
parent
3b135ac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cmd/cmd.go
cmd/cmd.go
+4
-0
No files found.
cmd/cmd.go
View file @
55b5f5dc
...
...
@@ -276,6 +276,10 @@ func generateInteractive(cmd *cobra.Command, model string) error {
case
errors
.
Is
(
err
,
io
.
EOF
)
:
return
nil
case
errors
.
Is
(
err
,
readline
.
ErrInterrupt
)
:
if
line
==
""
{
return
nil
}
continue
case
err
!=
nil
:
return
err
...
...
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