Skip to content

Commit

Permalink
Removes trailing space from inline output
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesiscoding committed Apr 10, 2023
1 parent c57cdc6 commit e6458f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src/available-cli/SoftwareUpdate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// SoftwareUpdate.swift
// available-cli
//
// Created by Aaron Jones on 4/10/23.
//

import Foundation
10 changes: 5 additions & 5 deletions src/output-cli/Output.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,23 @@ public class Output {
}

public func error(_ message: String, level: Int = 1) {
self.output(message: message, context: .error, level: level)
self.output(message: message, context: .error, level: level, terminator: "")
}

public func info(_ message: String, level: Int = 1) {
self.output(message: message, context: .info, level: level)
self.output(message: message, context: .info, level: level, terminator: "")
}

public func msg(_ message: String, level: Int = 1) {
self.output(message: message, context: .message, level: level)
self.output(message: message, context: .message, level: level, terminator: "")
}

public func normal(_ message: String, level: Int = 1) {
self.output(message: message, context: .normal, level: level)
self.output(message: message, context: .normal, level: level, terminator: "")
}

public func success(_ message: String, level: Int = 1) {
self.output(message: message, context: .success, level: level)
self.output(message: message, context: .success, level: level, terminator: "")
}

public func errorln(_ message: String, level: Int = 1) {
Expand Down

0 comments on commit e6458f0

Please sign in to comment.