diff --git a/README.md b/README.md index b48beb6..e62b4df 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ The `Subprocess` class can be used for command execution. ###### Input for data ```swift -let inputData: Data = "hello world".data(using: .utf8)! +let inputData = Data("hello world".utf8) let data = try await Subprocess.data(for: ["/usr/bin/grep", "hello"], standardInput: inputData) ``` ###### Input for text diff --git a/Sources/Subprocess/SubprocessDependencyBuilder.swift b/Sources/Subprocess/SubprocessDependencyBuilder.swift index 073db43..4cdc83e 100644 --- a/Sources/Subprocess/SubprocessDependencyBuilder.swift +++ b/Sources/Subprocess/SubprocessDependencyBuilder.swift @@ -53,7 +53,7 @@ public protocol SubprocessDependencyFactory { public struct SubprocessDependencyBuilder: SubprocessDependencyFactory { private static let queue = DispatchQueue(label: "\(Self.self)") private static var _shared: any SubprocessDependencyFactory = SubprocessDependencyBuilder() - /// Shared instance used for dependency creatation + /// Shared instance used for dependency creation public static var shared: any SubprocessDependencyFactory { get { queue.sync { diff --git a/Subprocess.podspec b/Subprocess.podspec index 3cc1684..0463454 100644 --- a/Subprocess.podspec +++ b/Subprocess.podspec @@ -7,7 +7,7 @@ Pod::Spec.new do |s| Everything related to creating processes and running shell commands on macOS. DESC s.homepage = 'https://github.com/jamf/Subprocess' - s.authors = { 'Cyrus Ingraham' => 'cyrus.ingraham@jamf.com', 'Michael Link' => 'michael.link@jamf.com' } + s.authors = { 'Michael Link' => 'michael.link@jamf.com' } s.source = { :git => "https://github.com/jamf/Subprocess.git", :tag => s.version.to_s } s.platform = :osx, '10.15.4' s.osx.deployment_target = '10.15.4'