_______ | _ .-----.-----.--.--.-----. |. 1 | _ | _ | | |__ --| |. _ | __|_____|_____|_____| |: | |__| |::.|:. | `--- ---'
Apous is a simple tool that allows for easier authoring of Swift scripts.
- Allow the breaking up of scripts into multiple files.
- Dependency management through Carthage or CocoaPods.
How it Works
Apous works by first checking for a
Podfile in your script's directory. If one is
carthage update or
pod install --no-integrate will be run.
Next, all of your Swift files are compiled into a single
.apousscript binary that will then be
run automatically for you.
It's really that simple.
First, you need to install the latest build of Apous.
- Download the latest version of
- Copy it to a location in your path, such as
Homebrew support is pending: https://github.com/Homebrew/homebrew/pull/41473
Creating Your First Script
Create a new directory for your scripts, say
Change to that directory:
Create a new script file:
Change the contents of the file to:
import Foundation print("Welcome to Apous!")
Run the script:
This will output:
Welcome to Apous!
You can see some other samples here: Samples.
Apous also supports running scripts with
#!. Note that your entry point script must be named
#!/usr/local/bin/apous import Foundation print("Welcome to Apous!")
> chmod +x main.swift > ./main.swift Welcome to Apous!
Q: What is Apous mean?
A: It's from the ancient Greek απους, meaning "without feet".