add multi line strings to final prompt
This commit is contained in:
parent
9b12a511ca
commit
01c44d687e
1 changed files with 1 additions and 0 deletions
|
@ -581,6 +581,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
||||||
isMultiLine = false
|
isMultiLine = false
|
||||||
painter.HideHint = false
|
painter.HideHint = false
|
||||||
multiLineBuffer += strings.TrimSuffix(line, `"""`)
|
multiLineBuffer += strings.TrimSuffix(line, `"""`)
|
||||||
|
line = multiLineBuffer
|
||||||
multiLineBuffer = ""
|
multiLineBuffer = ""
|
||||||
scanner.SetPrompt(">>> ")
|
scanner.SetPrompt(">>> ")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue