feat: Breaking out more dependencies.

This commit is contained in:
2024-12-11 09:23:34 -05:00
parent 92cd6afa2b
commit 9c784d4dcb
9 changed files with 62 additions and 313 deletions

View File

@@ -13,7 +13,6 @@ public extension DependencyValues {
@DependencyClient
public struct CliClient: Sendable {
public var runCommand: @Sendable ([String], Bool, ShellCommand.Shell) async throws -> Void
public var findVaultFileInCurrentDirectory: @Sendable () throws -> String
public func runCommand(
quiet: Bool,
@@ -56,12 +55,6 @@ extension CliClient: DependencyKey {
args
))
}
} findVaultFileInCurrentDirectory: {
fatalError()
// guard let url = try fileClient.findVaultFileInCurrentDirectory() else {
// throw CliClientError.vaultFileNotFound
// }
// return path(for: url)
}
}