Expose an option that prints the cached build directory?
frypf opened this issue · comments
I've been doing some swift scripting in VSCode rather than Xcode for a change and it would be really useful if there was some way of outputting the path of the build dir generated within ~/Library/Developer/swift-sh.cache
. I had a quick look at Path+ResolvedHash.swift and hacked together a short script (obviously utilising the capabilities of swift-sh
md5
for a given file.
However, this involves a fair bit of overhead, as well as c. 138mb of generated data just to output a single piece of info that is already calculated internally within swift-sh
. Would it be possible to add a --print-build-dir
option (or similar) within swift-sh
itself? Or maybe this info is already accessible and I've completely missed it!
Thanks for providing such a useful tool
sure, PR welcome