_______
| _ .-----.-----.--.--.-----.
|. 1 | _ | _ | | |__ --|
|. _ | __|_____|_____|_____|
|: | |__|
|::.|:. |
`--- ---'
Apous is a simple tool that allows for easier authoring of Swift scripts.
Primary features:
- Allow the breaking up of scripts into multiple files.
- Dependency management through Carthage or CocoaPods.
Apous works by first checking for a Cartfile
or Podfile
in your script's directory. If one is
present, then carthage update
or pod install --no-integrate
will be run.
Next, all of your Swift files are combined into a single .apous.swift
file that can
then be run by the swift
REPL.
It's really that simple.
First, you need to install the latest build of Apous.
- Download the latest version of
apous
from "Releases". - Copy it to a location in your path, such as
/usr/local/bin/
.
- Create a new directory for your scripts, say
mkdir demo
- Change to that directory:
cd demo
- Create a new script file:
touch demo.swift
- Change the contents of the file to:
import Foundation
print("Welcome to Apous!")
- Run the script:
apous demo.swift
This will output:
Welcome to Apous!
You can see some other samples here: Samples.
Currently there are some design limitations:
Q: What is Apous mean? A: It's from the ancient Greek απους, meaning "without feet".