mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
20 lines
448 B
Swift
20 lines
448 B
Swift
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() }
|
|
)
|
|
}
|
|
}
|