Skip to content

Instantly share code, notes, and snippets.

@mklbtz
Last active August 21, 2019 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mklbtz/884fdc4ec69535c632be69fa60a125ed to your computer and use it in GitHub Desktop.
Save mklbtz/884fdc4ec69535c632be69fa60a125ed to your computer and use it in GitHub Desktop.
Use Xcode to run Swift CLI, file regex included
{
"selector": "source.swift",
"shell_cmd": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift \"${file}\"",
"file_regex": "^(.+\\.swift):([0-9]+):?([0-9]+)?:? (?:error|warning|note): (.*)$"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment