Skip to content

Commit c2b8d99

Browse files
Merge pull request #6 from SwiftPackageIndex/remove-bash
Remove bash from launch command
2 parents 5638f21 + 7238f73 commit c2b8d99

File tree

9 files changed

+356
-423
lines changed

9 files changed

+356
-423
lines changed

Sources/Argument.swift

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22

33

4-
public enum Argument {
4+
public enum Argument: Equatable {
55
case quoted(QuotedString)
66
case verbatim(String)
77

@@ -12,15 +12,6 @@ public enum Argument {
1212
public init(verbatim string: String) {
1313
self = .verbatim(string)
1414
}
15-
16-
public var string: String {
17-
switch self {
18-
case let .quoted(value):
19-
return value.quoted
20-
case let .verbatim(string):
21-
return string
22-
}
23-
}
2415
}
2516

2617

@@ -32,7 +23,14 @@ extension Argument: ExpressibleByStringLiteral {
3223

3324

3425
extension Argument: CustomStringConvertible {
35-
public var description: String { string }
26+
public var description: String {
27+
switch self {
28+
case let .quoted(value):
29+
return value.quoted
30+
case let .verbatim(string):
31+
return string
32+
}
33+
}
3634
}
3735

3836

Sources/QuotedString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ShellQuote
22

33

4-
public struct QuotedString {
4+
public struct QuotedString: Equatable {
55
public var unquoted: String
66
public var quoted: String
77

Sources/SafeString.swift

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)