Coverage Report

Created: 2023-08-31 01:33

.../cutbox_command/Sources/CutBoxCLICore/Output.swift
Line
Count
Source (jump to first uncovered line)
1
//
2
//  Output.swift
3
//
4
//  Created by jason on 31/8/23.
5
//
6
7
import Foundation
8
9
public class Output {
10
37
    public init() {
11
37
    }
12
13
0
    public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {
14
0
        Swift.print(items, separator: separator, terminator: terminator)
15
0
    }
16
17
0
    public func error(_ items: Any..., separator: String = " ", terminator: String = "\n") {
18
0
        let errorOutput = items.map { String(describing: $0) }.joined(separator: separator)
19
0
        FileHandle.standardError.write(Data((errorOutput + terminator).utf8))
20
0
    }
21
}