-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdin/stdout input/output #2
Comments
New commit for beta of 1.5.0 which adds
This is not final yet due to a nwn_gff issue, at least on windows, when writing out gff data to stdout (See issue). But my tests on piping gff->nwnt through stdin/out at least appear to be working. |
Thanks for the speedy impl! I don't think this is right however:
If I do
Also, |
As discussed in discord - I was having trouble handling stdin as you describe, but after leaving it a few hours and picking it back up the answer was extremely obvious. Just to publicise the discussion: Unrelated: Also discovered nwn_gff has issues with piped-in gff data on my machine too. Remains in beta until I determine if it's just me or will require an nwnt-side fix too. |
Should have a way to print the output to stdout, for composability with other tools (eg
nwnt foo.gff | grep bar
).Arguably this should be the default and an argument or pipe redirect (>) would send it to a file, but if the CLI is meant to be stable then a new flag would work.
Should also be able to take input from stdin, especially in nwnt->gff direction, so you could do
nwnt | sed | nwnt
for quick edits.The text was updated successfully, but these errors were encountered: