Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Last active March 10, 2020 09:55
Show Gist options
  • Save lordcodes/5680f3af6dc77c012b3782296d31d377 to your computer and use it in GitHub Desktop.
Save lordcodes/5680f3af6dc77c012b3782296d31d377 to your computer and use it in GitHub Desktop.
Code for the article "Manage automation tasks using Swift Package Manager"
extension Tasks {
struct Uninstall: ParsableCommand {
static var configuration = CommandConfiguration(
commandName: "uninstall",
abstract: "Uninstall Uploader and remove from system."
)
func run() throws {
try runShell("rm -f /usr/local/bin/uploader")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment