This commit is contained in:
2023-03-05 14:37:02 -05:00
parent 5b8b912844
commit 8524efb765
23 changed files with 926 additions and 11 deletions

View File

@@ -0,0 +1,19 @@
import Dependencies
@_exported import CliMiddleware
@_exported import FileClient
@_exported import LoggingDependency
@_exported import ShellClient
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
extension CliMiddleware: DependencyKey {
public static var liveValue: CliMiddleware {
.init(
brew: { try await Brew(context: $0).run() },
zsh: { try await Zsh(context: $0).run() }
)
}
}