<div dir="ltr">Hey all,<div><br></div><div>I've been working on a SwiftPM executable (<a href="https://github.com/danger/danger-swift">danger-swift</a>) which is a pretty small CLI tool. I feel like it's a bunch of work to allow a user to get a copy of the app running on their computer / CIs. My current app distributions options are: <a href="https://brew.sh">Homebrew</a> and <a href="https://github.com/JohnSundell/Marathon">Marathon</a> (which I added to homebrew) or a custom cURL'd setup script. None are great, because it requires many build steps and require custom installers. </div><div><br></div><div>In an eco-system like Node/Ruby I can do something like "<font face="monospace, monospace">npm install -g danger</font>" which uses the centralized index, or "<font face="monospace, monospace">npm install -g danger/danger-js</font>" if I wanted to use a repo which would install CLI tools. I'd like to see SwiftPM cover this part of the swift ecosystem, and encourage building small CLI tools in swift.</div><div><br></div><div>So, as an example of behavior, running this new command: "<font face="monospace, monospace">swift install danger/danger-swift</font>" would:</div><div><br></div><div>- use the <span style="font-family:monospace,monospace">danger/danger-swift </span>a shortcut for GitHub, and clone that repo into a temporary folder</div><div>- parse the <a href="https://github.com/danger/danger-swift/blob/master/Package.swift">Package.swift</a> then let the user know they are going to install the CLI executable danger-swift</div><div>- run <span style="font-family:monospace,monospace">swift build </span>in release mode</div><div>- install the executable into a folder in the users default path</div><div><br></div><div>This greatly reduces the friction to making more tools, and reduces the number of dependencies for users to being the Xcode CLT which basically everyone has out of the box.</div><div><br></div><div>I'm willing to take a stab at an implementation if this has approval of Anders/Daniel.<br></div><div><br></div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div style="color:rgb(0,0,0);font-family:Helvetica;margin:0px">-- </div><div style="color:rgb(0,0,0);font-family:Helvetica;margin:0px"><span style="color:rgb(35,35,35);font-size:12px">[A.]</span><span style="color:rgb(35,35,35);font-size:12px;white-space:pre">        </span> <span style="color:rgb(35,35,35);font-size:12px">Orta Therox</span></div><div style="font-family:Helvetica;font-size:12px;margin:0px;color:rgb(35,35,35);min-height:14px"><blockquote style="color:rgb(0,0,0);font-size:medium;margin:0px 0px 0px 40px;border:none;padding:0px"><div style="word-wrap:break-word"><div style="word-wrap:break-word"><div style="margin:0px;font-size:12px;color:rgb(35,35,35);min-height:14px"><blockquote type="cite" style="border-left-color:rgb(0,33,98);color:rgb(0,33,98);border-width:1px;margin-left:0px;padding-left:10px;padding-right:0px;margin-right:0px"><span style="border-collapse:collapse;color:rgb(34,34,34)"><div style="margin:0px"><span style="color:rgb(136,136,136)">w/ </span><a href="http://artsy.net/" target="_blank">Artsy</a></div><div style="margin:0px"><a href="http://cocoapods.org/" target="_blank">CocoaPods</a> / <a href="http://cocoadocs.org/" target="_blank">CocoaDocs</a></div><div style="margin:0px"><a>@orta</a> / <a href="http://orta.github.com/" target="_blank">orta.github.com</a></div><div style="margin:0px"><br></div></span></blockquote></div></div></div></blockquote></div><div style="font-family:Helvetica;font-size:12px;margin:0px;color:rgb(35,35,35)"><br></div></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:medium"></span></div></div></div></div></div></div>
</div></div>