Skip to content

Commit 1fa958a

Browse files
committed
Make new ShellOutCommand methods public
1 parent 83578fb commit 1fa958a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/ShellOut.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,24 @@ public struct ShellOutCommand {
101101
self.arguments = arguments
102102
}
103103

104-
var string: String {
104+
public var string: String {
105105
([command.value] + arguments.map(\.string))
106106
.joined(separator: " ")
107107
}
108108

109-
func appending(arguments newArguments: [Argument]) -> Self {
109+
public func appending(arguments newArguments: [Argument]) -> Self {
110110
.init(command: command, arguments: arguments + newArguments)
111111
}
112112

113-
func appending(argument: Argument) -> Self {
113+
public func appending(argument: Argument) -> Self {
114114
appending(arguments: [argument])
115115
}
116116

117-
mutating func append(arguments newArguments: [Argument]) {
117+
public mutating func append(arguments newArguments: [Argument]) {
118118
self.arguments = self.arguments + newArguments
119119
}
120120

121-
mutating func append(argument: Argument) {
121+
public mutating func append(argument: Argument) {
122122
append(arguments: [argument])
123123
}
124124
}

0 commit comments

Comments
 (0)