Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuchan/cli-dev-swift
https://github.com/yuchan/cli-dev-swift
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuchan/cli-dev-swift
- Owner: yuchan
- Created: 2015-05-28T18:20:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T18:21:00.000Z (over 9 years ago)
- Last Synced: 2024-11-09T13:40:37.939Z (about 2 months ago)
- Language: Swift
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cli in Swift
--------------------- [Swift for Command-Line Tools](https://realm.io/news/swift-for-CLI/)
## Easiest way
just run it:
swift script.swift
compile scripts into a binary and run it:
swiftc script.swift -o binary
chmod +x binary
./binary## Development in XCode
In this case, XCode is just the text editor for Swift.
So you can write a code like you are developling iOS apps.
After you compile sources, you'll find the binary in Product group.if you like, you can also prepare your own [Makefile](http://owensd.io/2015/01/14/compiling-swift-without-xcode.html).
But that sounds like 20th century way. :D