JohnSundell/Marathon is one of the mobile-focused repositories TopGit tracks, currently at 1.9k stars, written primarily in Swift. [DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
⚠️ DEPRECATED: Marathon is now deprecated in favor of using the Swift Package Manager directly. It's recommended to migrate your scripts as soon as possible, since future Xcode/macOS versions may break compatibility. See this issue for more info.
Welcome to Marathon, a command line tool that makes it easy to write, run and manage your Swift scripts. It's powered by the Swift Package Manager and requires no modification to your existing scripts or dependency packages.
$ git clone https://github.com/JohnSundell/Marathon.git
$ cd Marathon
$ make
Using the Swift Package Manager:
$ git clone https://github.com/JohnSundell/Marathon.git
$ cd Marathon
$ swift build -c release -Xswiftc -static-stdlib
$ cp -f .build/release/Marathon /usr/local/bin/marathon
Using Mint:
$ mint install JohnSundell/Marathon
Using Homebrew (not recommended, due to slow update cycle):
brew install marathon-swift
On Linux
$ git clone https://github.com/JohnSundell/Marathon.git
$ cd Marathon
$ swift build -c release
$ cp -f .build/release/Marathon /usr/local/bin/marathon
If you encounter a permissions failure while installing, you may need to prepend sudo to the commands.
To update Marathon, simply repeat any of the above two series of commands, except cloning the repo.
Requirements
Marathon requires the following to be installed on your system:
Swift 4.1 or later (bundled with Xcode 9.3 or later)
Git
Xcode (if you want to edit scripts using it)
Examples
Check out this repository for a few example Swift scripts that you can run using Marathon.
Specifying dependencies inline
Scripting usually involves using 3rd party frameworks to get your job done, and Marathon provides an easy way to define such dependencies right when you are importing them in your script, using a simple comment syntax:
Specifying your dependencies ensures that they will always be installed by Marathon before your script is run, edited or installed - making it super easy to share scripts with your friends, team or the wider community. All you have to do is share the script file, and Marathon takes care of the rest!
Using a Marathonfile
If you prefer to keep your dependency declarations separate, you can create a Marathonfile in the same folder as your script. This file is simply a new line separated list of URLs pointing to either:
The URL to a git repository of a local or remote package to install before running your script.
The path to another script that should be linked to your script before running it.
Marathon includes autocomplete for the zsh and fish shells (PRs adding support for other shells is more than welcome!). To enable it, do the following:
zsh:
Add the line fpath=(~/.marathon/ShellAutocomplete/zsh $fpath) to your ~/.zshrc file.
Add the line autoload -Uz compinit && compinit -i to your ~/.zshrc file if it doesn't already contain it.
How active is development on JohnSundell/Marathon?
The most recent commit recorded on JohnSundell/Marathon was 7.2 years ago, based on the GitHub push timestamp. The repository has 74 forks — one of the better signals of community interest.
How many stars does JohnSundell/Marathon have?
JohnSundell/Marathon has 1.9k GitHub stars — refresh the page for the live number, or check github.com/JohnSundell/Marathon. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is JohnSundell/Marathon open source?
Yes — JohnSundell/Marathon ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/JohnSundell/Marathon.
What else is in the Mobile space?
JohnSundell/Marathon is tracked by TopGit under the Mobile category, alongside 7 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is JohnSundell/Marathon?
JohnSundell/Marathon (JohnSundell/Marathon) is a Swift project on GitHub. From the project's own README: [DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
What language is JohnSundell/Marathon written in?
JohnSundell/Marathon is written primarily in Swift. GitHub's language field is based on the largest share of bytes in the default branch.
What license does JohnSundell/Marathon use?
JohnSundell/Marathon is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about JohnSundell/Marathon?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/JohnSundell/Marathon is the definitive source.
Read full README in the tab above.
Still deciding about Marathon?
One click hands the question to an AI along with this page — see what it says about Marathon.