TwoBitCoders / jx

jx: Memory-Safe JSON Processing using JavaScript implemented in Go
MIT License
48 stars 0 forks source link

--from-file not blocking on stdin #4

Closed mftb0 closed 1 week ago

mftb0 commented 1 week ago

Describe the bug Invoking jx with --from-file just prints the usage message and exits.

To Reproduce

jx -f [filepath] [Enter]

Actual behavior Invoking jx as shown above just prints the usage message and exits

Expected behavior Hitting the enter key, should move the cursor to the next line and block waiting for input and repeat each time input is entered and enter pressed.

Screenshots

Desktop (please complete the following information):

Additional context Contrast with invoking jx with a script on the command line like:

jx x [Enter]

which works as expected.

mftb0 commented 1 week ago

Fixed in ec5d9b8