The Go Blog

Swift Package Manager

bantana
3 March 2017

swift package manager command

swift package init
swift package init --type empty
swift package init --type library
swift package init --type executable
swift package init --type system-module

Package.swift

howto get the tag 3.0.0-pre1

import PackageDescription

let package = Package(
    name: "cmdtest",
    dependencies: [
        .Package(url: "git@aozsky.com:xxx/CommandLine.git", versions: Version(2,0,0)..<Version(3,0,0 )),
        //.Package(url: "git@aozsky.com:xxx/CommandLine.git",Version(3, 0, 0, prereleaseIdentifiers: ["pre1"]))
    ]
)

Semantic Versioning 2.0.0

Related articles