Created
March 10, 2020 09:55
-
-
Save lordcodes/d09c1ee44491598a4f6492a0b5cf0575 to your computer and use it in GitHub Desktop.
Code for the article "Manage automation tasks using Swift Package Manager"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Tasks { | |
struct Install: ParsableCommand { | |
static var configuration = CommandConfiguration( | |
commandName: "install", | |
abstract: "Install Uploader for running globally." | |
) | |
func run() throws { | |
try runShell("swift build -c release") | |
try runShell("install .build/release/uploader-cli /usr/local/bin/uploader") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment