Swiftpack.co - pelagornis/PLCommand as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by pelagornis.
pelagornis/PLCommand 1.0.2
Running Command with Swift
⭐️ 2
🕓 2 weeks ago
macOS
.package(url: "https://github.com/pelagornis/PLCommand.git", from: "1.0.2")

PLCommand

SPM Swift License Platform

﹥: Running Command from Swift

Installation

PLCommand was deployed as Swift Package Manager. Package to install in a project. Add as a dependent item within the swift manifest.

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/Pelagornis/PLCommand.git", from: "1.0.1")
    ],
    ...
)

Then import the PLCommand from thr location you want to use.

import PLCommand

Documentation

The documentation for releases and main are available here:

Using

If you want to use Bash.

let bash = PLCommand.Bash
bash.run("{command}")

Or if you want to use zsh.

let zsh = PLCommand.ZSH
zsh.run("{command}")

Extension

PLCommand is easier to scale.

extension PLCommand {
    static let Swift = PLCommand.Alias(executableURL: "/usr/bin/swift")
}

PLCommand.Swift.run("{command}")

License

PLCommand is under MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 2
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

PLCommand v1.0.2
2 weeks ago

What's Changed

error: 'plcommand': package 'plcommand' is using Swift tools version 5.8.0 but the installed version is 5.7.1
  • Changed: Swift 5.8 -> 5.7
  • Support: Docc

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics