1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

fix: new line after prompts

This commit is contained in:
Pete Davison 2023-06-27 09:53:06 +00:00 committed by Andrey Nering
parent 4de2ccea59
commit 02f1c8482a

View File

@ -155,7 +155,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
return &errors.TaskCancelledNoTerminalError{TaskName: call.Task}
}
e.Logger.Outf(logger.Yellow, "task: %q [y/N]\n", t.Prompt)
e.Logger.Outf(logger.Yellow, "task: %q [y/N]: ", t.Prompt)
reader := bufio.NewReader(e.Stdin)
userInput, err := reader.ReadString('\n')