Skip to content

Instantly share code, notes, and snippets.

@up1
Last active October 4, 2015 06:08
Show Gist options
  • Save up1/2c04ba636a753a37f7f9 to your computer and use it in GitHub Desktop.
Save up1/2c04ba636a753a37f7f9 to your computer and use it in GitHub Desktop.
Swift CLI
$/Applications/Xcode6-Beta1.app/Contents/Developer/usr/bin/xcrun swift -i script.swift
$xcrun swift -i script.swift
$swift -i script.swift
ปัจจุบัน
$swift script.swift
#!/usr/bin/env swift
for name in Process.arguments {
print("Hello \(name)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment