yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.28k stars 122 forks source link

Allow mint run to drop the executable name #159

Closed yonaskolb closed 4 years ago

yonaskolb commented 4 years ago

Fixes #145

This allows mint run to drop the executable name. It still supports it if specified. With packages with multiple executables it can still be specified, or a new --executable argument can be used in case the first arguments passed to the executable matches the executable

All of these work

mint run realm/SwiftLint
mint run realm/SwiftLint autocorrect
mint run swiftlint
mint run swiftLint autocorrect
mint run swiftLint swiftlint autocorrect #for backwards compatability
mint run --executable swiftlint realm/SwiftLint autocorrect