Skip to content
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

nwn_script_comp: Allow taking input from stdin #54

Open
mtijanic opened this issue Jul 7, 2023 · 1 comment
Open

nwn_script_comp: Allow taking input from stdin #54

mtijanic opened this issue Jul 7, 2023 · 1 comment
Assignees

Comments

@mtijanic
Copy link
Collaborator

mtijanic commented Jul 7, 2023

Simplifies (and speeds up) hooking custom build steps such as a preprocessor.

Also would help if ncs can be emitted to stdout for a custom postprocessing step, but I figure that's particularly niche.

@ELadner
Copy link

ELadner commented Jul 7, 2023

Standard Unix command-liney things would allow a dash "-" argument to indicate hooking the input from stdin.

An easy way would be to allow the "-" argument to "-c" and pass on the stdin handle instead of opening the file.

echo "void main() { int i = 1; }" | nwn_script_comp --etc --etc -c - 

@niv niv self-assigned this Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants