add multi line strings to final prompt

This commit is contained in:
Jeffrey Morgan 2023-09-23 00:27:24 -04:00
parent 9b12a511ca
commit 01c44d687e

View file

@ -581,6 +581,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
isMultiLine = false
painter.HideHint = false
multiLineBuffer += strings.TrimSuffix(line, `"""`)
line = multiLineBuffer
multiLineBuffer = ""
scanner.SetPrompt(">>> ")
} else {