From bd8ceeecbc3b314af58a2964c8b3ef34df37d971 Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Wed, 29 Mar 2017 21:50:27 +0200 Subject: [PATCH] Make RunOutput.stdout and .stderror publicly immutable. --- Sources/SwiftShell/Command.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/SwiftShell/Command.swift b/Sources/SwiftShell/Command.swift index c4d5c23..ebe1d1b 100755 --- a/Sources/SwiftShell/Command.swift +++ b/Sources/SwiftShell/Command.swift @@ -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.