Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created March 10, 2020 09:55
Show Gist options
  • Save lordcodes/d09c1ee44491598a4f6492a0b5cf0575 to your computer and use it in GitHub Desktop.
Save lordcodes/d09c1ee44491598a4f6492a0b5cf0575 to your computer and use it in GitHub Desktop.
Code for the article "Manage automation tasks using Swift Package Manager"
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