mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 20:43:10 +00:00
♻️ Append terminator
This commit is contained in:
parent
fec436070d
commit
d0738e50b6
2 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,10 @@ var printObserver: ((String) -> Void)?
|
|||
// See MasKitTests/OutputListener.swift.
|
||||
func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {
|
||||
if let observer = printObserver {
|
||||
let output = items.map { "\($0)" }.joined(separator: separator)
|
||||
let output = items
|
||||
.map { "\($0)" }
|
||||
.joined(separator: separator)
|
||||
.appending(terminator)
|
||||
observer(output)
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ class InfoCommandSpec: QuickSpec {
|
|||
Minimum OS: 10.14
|
||||
Size: 1 KB
|
||||
From: https://awesome.app
|
||||
|
||||
"""
|
||||
|
||||
describe("Info command") {
|
||||
|
|
Loading…
Reference in a new issue