apous
apous copied to clipboard
Let's make Swift scripting a reality.
For example, if I were to create a file called `main.swift` and fill it with: ``` swift #!/usr/local/bin/apous print("Hello, World!") ``` then executing the following: ``` bash $ chmod +x...
I created the following script: ``` #!/usr/local/bin/apous import Foundation import CommonMark import LiterateSwift print("Hello") ``` And the following Podfile: ``` platform :osx, 10.9 plugin 'cocoapods-rome' use_frameworks! pod 'CommonMark' pod 'LiterateSwift'...
A script that hasn't changed shouldn't need to be recompiled. Make sure this recompile isn't happening.
Currently only OS X is supported for the script; support iOS too.
I think the only real consideration here is `Xcode.app` and `Xcode-beta.app`. Supporting arbitrary versions of Swift seems like something that wouldn't even be feasible. Maybe mark scripts as requiring at...
In the title.
The CLI interface is a hack, needs to have proper support for commands: ``` apous update apous help apous run [path/to/scripts] apous edit apous init ``` etc...
This would help by allowing scripters to use Xcode to edit the scripts without actually requiring projects to be built and maintained.