Compatibility
- 0.0.2 and main5.35.25.15.04.2
- 0.0.2 and mainiOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
Taking the Mac out of the General Utility and putting it in its own package
Support code for developing Swift code on Mac.
Extends and depends on Swift-General-Utility.
Run a system command with Process
and return the contents of stdout or throw stderr for non-zero status. Although you may call this with either a single string or (cmd-path, argument-array), the latter approach is preferred.
isDir
check on path.isDir
check on string path.PROJECT > Swift Packages > Install:
https://github.com/erica/https://github.com/erica/Swift-Mac-Utility
SwiftPM:
dependencies: [
.package(url: "https://github.com/erica/Swift-Mac-Utility", from: "x.x.x"), // replace with version
],
targets: [
.target(
name: "TARGET-NAME",
dependencies: [
.product(name: "MacUtility"),
],
),
],