go get -u github.com/whosonfirst/go-reader
go mod vendor
this might need another commit to get it working, I tried a few methods and I couldn't get it to output anything 🤷♂️
cat berlin.geojson \
| ./bin/exportify \
-reader-uri stdin:// -
2021/08/20 10:42:32 Failed to create writer for 'fs:///code/whosonfirst/go-whosonfirst-exportify/data', stat /code/whosonfirst/go-whosonfirst-exportify/data: no such file or directory
{exit 1}
note: the order of commands affects the execution, I assumed -writer-uri stdout:// was the default, but this seems to not be the case?
cat berlin.geojson \
| ./bin/exportify \
-reader-uri stdin:// - \
-writer-uri stdout://
2021/08/20 10:46:23 Failed to create writer for 'fs:///code/whosonfirst/go-whosonfirst-exportify/data', stat /code/whosonfirst/go-whosonfirst-exportify/data: no such file or directory
{exit 1}
Regarding stdin:// - the - seems redundant here, do I need to include that or use it in for both stdin & stdout?
as per discussion in https://github.com/whosonfirst/go-whosonfirst-exportify/issues/3#issuecomment-902193193 this PR updates the
whosonfirst/go-reader
dependency to the latest version.this might need another commit to get it working, I tried a few methods and I couldn't get it to output anything 🤷♂️
note: the order of commands affects the execution, I assumed
-writer-uri stdout://
was the default, but this seems to not be the case?Regarding
stdin:// -
the-
seems redundant here, do I need to include that or use it in for both stdin & stdout?