Fix Control+C in the repo-template
package utils
import (
- "errors"
"fmt"
"regexp"
"strconv"
"strings"
"github.com/c-bata/go-prompt"
- "github.com/jfrog/jfrog-cli-go/utils/cliutils"
)
const (
@@ -81,7 +79,7 @@ func interruptKeyBind() prompt.Option {
interrupt := prompt.KeyBind{
Key: prompt.ControlC,
Fn: func(buf *prompt.Buffer) {
- cliutils.ExitOnErr(errors.New("Interrupted"))
+ panic("Interrupted")
},
}
return prompt.OptionAddKeyBind(interrupt)
