feat: Begin working on configuration client.
This commit is contained in:
15
Sources/CliClient/Internal/Helpers.swift
Normal file
15
Sources/CliClient/Internal/Helpers.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
import Logging
|
||||
|
||||
// TODO: Move.
|
||||
@_spi(Internal)
|
||||
public extension Logger.Level {
|
||||
|
||||
init(verbose: Int) {
|
||||
switch verbose {
|
||||
case 1: self = .warning
|
||||
case 2: self = .debug
|
||||
case 3...: self = .trace
|
||||
default: self = .info
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user