How would i read from the stdin via nimscript?
i've tried:
if readLine(stdin) == "yes":
exec buildCommand
i've run the script with
nim c build.nims
i receive
build.nims(50, 13) Error: undeclared identifier: 'stdin'
How would i read from the stdin via nimscript?
i've tried:
if readLine(stdin) == "yes":
exec buildCommand
i've run the script with
nim c build.nims
i receive
build.nims(50, 13) Error: undeclared identifier: 'stdin'
This is now implemented in nimscript in devel: readAllFromStdin().
It will be available in Nim v0.20.0+ (yet to be released as of 2019-05-21).