mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
wip
This commit is contained in:
19
dots/Sources/CliMiddlewareLive/LiveKey.swift
Normal file
19
dots/Sources/CliMiddlewareLive/LiveKey.swift
Normal 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() }
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user