JohnSundell / Marathon

[DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
MIT License
1.86k stars 78 forks source link

Script Manager Allow Remote #183

Open ghost opened 6 years ago

ghost commented 6 years ago

Passing the following url

https://raw.githubusercontent.com/JohnSundell/Marathon-Examples/master/AddSuffix/addSuffix.swift

into the create task results in

Opening addSuffix.xcodeproj/

Example

$marathon create https://raw.githubusercontent.com/JohnSundell/Marathon-Examples/master/AddSuffix/addSuffix.swift
🐣  Created script at https://raw.githubusercontent.com/JohnSundell/Marathon-Examples/master/AddSuffix/addSuffix.swift
✏️  Opening addSuffix.xcodeproj/

The following makes sense but I think the boolean check might be too tricky to manage at this point. We might want to rework the script manager to ensure the following four tasks can throw more specific errors.

screen shot 2018-08-01 at 08 20 39