Skip to content
/ vintage Public

[UNMAINTED] command-line tool to check for outdated Swift Package Manager dependencies

License

Notifications You must be signed in to change notification settings

vinhnx/vintage

Repository files navigation

vintage

UNMAINTAINED

Swift 5.0 Swift Package Manager @vinhnx

vintage is a small command-line tool to check outdated Swift Package Manager dependencies.

📦 pseudo swift package outdated command.

Think pod outdated or carthage outdated, but for Swift Package Manager.

demo

Usage

Without any specifications (have to be executed in the directory where Swift Package Manager manifest file (Package.swift) is located):

$ vintage

Specifies path of Swift Package Manager directory to update:

$ vintage -p path/to/dependencies

Help page:

$ vintage --help
USAGE: vintage [--path <path>]

OPTIONS:
  -p, --path <path>       Path to the folder contains Swift Package manifest file (Package.swift). (default: .)
  -h, --help              Show help information.

Installation

🆕 swiftbrew

"A package manager that installs prebuilt Swift command line tool packages, or Homebrew for Swift packages."

$ swift brew install vinhnx/vintage

homebrew

$ brew tap vinhnx/homebrew-formulae
$ brew install vinhnx/formulae/vintage

to upgrade existing vintage executable

$ brew upgrade vinhnx/formulae/vintage

or

$ brew install vinhnx/homebrew-formulae/vintage

Mint

$ mint install vinhnx/vintage

Marathon

$ marathon install vinhnx/vintage

Make

$ git clone https://github.com/vinhnx/vintage.git
$ cd vintage
$ make

Swift Package Manager

$ git clone https://github.com/vinhnx/vintage.git
$ cd vintage
$ swift build -c release
$ cp -f .build/release/vintage /usr/local/bin/vintage

Related projects

If you like this tool, checkout my spawn, it's a tool to generate and/or update Swift packages and open a Xcode project for you.

Combo:

$ vintage && spawn # vintage: check for any outdated packages, spawn: update packages then open an generated Xcode project for you

demo

I hope you like it! :)

Dependencies

Reference

swift-outdated

Check out https://github.com/kiliankoe/swift-outdated for similiar approach to checking outdated depedencies.

Help, feedback or suggestions?

Feel free to contact me on Twitter for discussions, news & announcements & other projects. Thank you! 🚀