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.