Read Ninja build file from command line

Is it possible to read a Ninja build file from STDIN, even without a build.ninja or other file present?

Upvotes: 2

Views: 384

Answers (1)

Yes, use /dev/stdin as the filename. Note that this probably won't work on Windows.

echo "# ninja!" | ninja -f /dev/stdin

Upvotes: 2

Related Questions