﹥: Running Command from Swift
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
The documentation for releases and main
are available here:
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}")
PLCommand is easier to scale.
extension PLCommand {
static let Swift = PLCommand.Alias(executableURL: "/usr/bin/swift")
}
PLCommand.Swift.run("{command}")
PLCommand is under MIT license. See the LICENSE file for more info.
link |
Stars: 2 |
Last commit: 1 week ago |
error: 'plcommand': package 'plcommand' is using Swift tools version 5.8.0 but the installed version is 5.7.1
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics