close input channel when receiving io.EOF

This commit is contained in:
Jeffrey Morgan
2023-10-27 20:26:04 -07:00
parent 4748609611
commit 2d75a4537c
2 changed files with 1 additions and 9 deletions

View File

@@ -536,7 +536,6 @@ func generateInteractive(cmd *cobra.Command, model string) error {
if err != nil {
return err
}
defer scanner.Close()
var wordWrap bool
termType := os.Getenv("TERM")