Skip to content

Commit

Permalink
fix(cli:run): add missing binding for stdin when we execute os cmd to…
Browse files Browse the repository at this point in the history
… run executable file on FS
  • Loading branch information
emil14 committed Oct 1, 2024
1 parent 11d108d commit 8894e69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ cmd/tmp
/neva-windows-arm64.exe
dist
trace.log
output

node_modules
__debug*
Expand Down
1 change: 1 addition & 0 deletions internal/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func newRunCmd(workdir string, nativec compiler.Compiler) *cli.Command {
}

cmd := exec.Command(filepath.Join(workdir, "output"))
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
Expand Down

0 comments on commit 8894e69

Please sign in to comment.