feat: Working create command.

This commit is contained in:
2024-11-29 18:55:00 -05:00
parent 58e0f0e4b5
commit 84b002c997
8 changed files with 332 additions and 60 deletions

View File

@@ -17,7 +17,7 @@ func testFindConfigPaths() throws {
@Test
func loadConfiguration() throws {
try withTestLogger(key: "loadConfiguration", logLevel: .trace) {
try withTestLogger(key: "loadConfiguration", logLevel: .debug) {
$0.cliClient = .liveValue
$0.fileClient = .liveValue
} operation: {
@@ -37,7 +37,7 @@ func withTestLogger(
) rethrows {
try withDependencies {
$0.logger = .init(label: label)
$0.logger[metadataKey: "instance"] = "\(key)"
$0.logger[metadataKey: "test"] = "\(key)"
$0.logger.logLevel = logLevel
} operation: {
try operation()
@@ -53,7 +53,7 @@ func withTestLogger(
) rethrows {
try withDependencies {
$0.logger = .init(label: label)
$0.logger[metadataKey: "instance"] = "\(key)"
$0.logger[metadataKey: "test"] = "\(key)"
$0.logger.logLevel = logLevel
setupDependencies(&$0)
} operation: {