Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Created March 10, 2020 09:50
Show Gist options
  • Save lordcodes/2e2d78dbca2cfc8d2624d3a5701c8e85 to your computer and use it in GitHub Desktop.
Save lordcodes/2e2d78dbca2cfc8d2624d3a5701c8e85 to your computer and use it in GitHub Desktop.
Code for the article "Manage automation tasks using Swift Package Manager"
let package = Package(
name: "Uploader",
products: [
.executable(name: "uploader-cli", targets: ["Uploader"])
],
dependencies: [
.package(
url: "https://github.com/realm/SwiftLint",
from: "0.39.1"
),
.package(
url: "https://github.com/nicklockwood/SwiftFormat",
from: "0.44.4"
),
.package(
url: "https://github.com/apple/swift-argument-parser",
from: "0.0.1"
)
],
targets: [
.target(
name: "Uploader",
dependencies: ["Uploader", "ArgumentParser"]
)
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment