Wait what?! We want to call arbitrary commandline tools from within Swift, like so:
for file in shell.ls("/Users/").split(separator: "\n") { print("dir:", file) }
A searchable collection of notes
Wait what?! We want to call arbitrary commandline tools from within Swift, like so:
for file in shell.ls("/Users/").split(separator: "\n") { print("dir:", file) }