WrenAI
WrenAI copied to clipboard
Installation should stop when exiting the launcher
Describe the bug as title
To Reproduce Steps to reproduce the behavior:
- start launcher
- when selecting
openaiorothers - hit ctrl + c to exit
- it continues to install
Expected behavior should exit the command
Screenshots
Hi Team, I would like to look into this issue. Could you assign it to me
@Prototype4988 Here you go!
Hi Team, I have done the fix attaching the screenshot from console below
I have added the below code snippet in Launch() function
`done := make(chan os.Signal, 1)
signal.Notify(done, os.Interrupt)
// Fire off a goroutine to loop until that channel receives a signal.
// When a signal is received simply exit the program
go func() {
for _ = range done {
os.Exit(0)
}
}()`
Let me know what you think of this approach
PR is merged!