Được TopGit lập chỉ mục từ metadata GitHub: JohnSundell/Marathon có 1.9k sao, viết chủ yếu bằng Swift. [DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
⚠️ 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.
JohnSundell/Marathon thuộc nhóm Mobile trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về JohnSundell/Marathon ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/JohnSundell/Marathon là nguồn chính thức.
JohnSundell/Marathon có bao nhiêu sao?
JohnSundell/Marathon có 1.9k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/JohnSundell/Marathon. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
JohnSundell/Marathon có phải mã nguồn mở không?
Có — JohnSundell/Marathon phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/JohnSundell/Marathon.
JohnSundell/Marathon còn đang phát triển không?
Commit gần nhất trên JohnSundell/Marathon là 7.2 năm trước (theo timestamp GitHub). Repo có 74 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
JohnSundell/Marathon dùng license gì?
JohnSundell/Marathon phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
JohnSundell/Marathon là gì?
JohnSundell/Marathon (JohnSundell/Marathon) là dự án Swift trên GitHub. Theo mô tả gốc: [DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
JohnSundell/Marathon viết bằng ngôn ngữ gì?
JohnSundell/Marathon chủ yếu viết bằng Swift. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Marathon có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về Marathon.