Support local packages
Swift Package Info
was extended to support analyzing local packages.
"Breaking change"
The <repository-url>
parameter was renamed to <url>
, with previous naming variations supported, and newly added path
and local-path
.
Usage
Similar for both remote and local packages, where the user can input either a valid remote Git repository or a local directory path containing a Package.swift
, via the url
parameter:
// remote
swift run swift-package-info --for https://github.com/ReactiveX/RxSwift
// local - with relative path
swift run swift-package-info --for ../RxSwift