Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package cmd
import (
"fmt"
"os"
"os/signal"
"strings"
"syscall"

"github.com/knqyf263/pet/config"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -34,6 +36,7 @@ func execute(cmd *cobra.Command, args []string) (err error) {

// Show final command before executing it
fmt.Printf("> %s\n", command)
signal.Ignore(syscall.SIGINT)

return run(command, os.Stdin, os.Stdout)
}
Expand Down