feat: Begins moving run commands into cli-client module

This commit is contained in:
2024-12-11 12:31:41 -05:00
parent 9c784d4dcb
commit ddb5e6767a
4 changed files with 196 additions and 21 deletions

View File

@@ -25,9 +25,15 @@ extension Coders: DependencyKey {
public static var liveValue: Self {
.init(
jsonDecoder: { JSONDecoder() },
jsonEncoder: { JSONEncoder() },
jsonEncoder: { defaultJsonEncoder },
tomlDecoder: { TOMLDecoder() },
tomlEncoder: { TOMLEncoder() }
)
}
}
private let defaultJsonEncoder: JSONEncoder = {
var encoder = JSONEncoder()
encoder.outputFormatting = [.prettyPrinted, .withoutEscapingSlashes]
return encoder
}()