Make RunOutput.stdout and .stderror publicly immutable.

This commit is contained in:
Kare Morstol
2017-03-29 21:50:27 +02:00
parent 85bbe2a009
commit bd8ceeecbc
+3 -3
View File
@@ -185,12 +185,12 @@ public final class RunOutput {
}
/// Standard output, trimmed for whitespace and newline if it is single-line.
public lazy var stdout: String = RunOutput.cleanUpOutput(self.output.stdout.read())
public private(set) lazy var stdout: String = RunOutput.cleanUpOutput(self.output.stdout.read())
/// Standard error, trimmed for whitespace and newline if it is single-line.
public lazy var stderror: String = RunOutput.cleanUpOutput(self.output.stderror.read())
public private(set) lazy var stderror: String = RunOutput.cleanUpOutput(self.output.stderror.read())
/// The exit code of the command. Anything but 0 means error.
/// The exit code of the command. Anything but 0 means there was an error.
public var exitcode: Int { return output.exitcode() }
/// Checks if the exit code is 0.