Update Support Code result discardable
﹥: 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:
main
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 supports frequently used features.
PLCommand.Git.`init`() PLCommand.Git.add() PLCommand.Git.clone(repositoryURL) PLCommand.Git.commit("comment") PLCommand.Git.push() PLCommand.Git.pull(remote: "origin") PLCommand.Git.checkout(branch: "gh-page")
PLCommand.SwiftPackage.create() PLCommand.SwiftPackage.create(type: .executable) PLCommand.SwiftPackage.update() PLCommand.SwiftPackage.generateXcodeproj() PLCommand.SwiftPackage.build() PLCommand.SwiftPackage.test()
PLCommand will provide more functionality in the future.
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.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
PLCommand
﹥: 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.
Then import the PLCommand from thr location you want to use.
Documentation
The documentation for releases and
main
are available here:main
Using
If you want to use Bash.
Or if you want to use zsh.
Frequently Used Commands
PLCommand supports frequently used features.
Git
Swift Package Manager
Extension
PLCommand is easier to scale.
License
PLCommand is under MIT license. See the LICENSE file for more info.