feat: Updates internal version container used to derive next version in cli-client.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import CustomDump
|
||||
import Dependencies
|
||||
import Logging
|
||||
import ShellClient
|
||||
|
||||
public struct LoggingOptions: Equatable, Sendable {
|
||||
@@ -26,3 +28,15 @@ public struct LoggingOptions: Equatable, Sendable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public extension Logger {
|
||||
func dump<T>(
|
||||
_ type: T,
|
||||
level: Level = .trace,
|
||||
buildMessage: @escaping (String) -> String = { $0 }
|
||||
) {
|
||||
var message = ""
|
||||
customDump(type, to: &message)
|
||||
log(level: level, "\(buildMessage(message))")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user