1
1
import Foundation
2
2
3
- public enum Argument : Equatable {
3
+ public enum ShellArgument : Equatable {
4
4
case quoted( QuotedString )
5
5
case verbatim( String )
6
6
@@ -13,13 +13,13 @@ public enum Argument: Equatable {
13
13
}
14
14
}
15
15
16
- extension Argument : ExpressibleByStringLiteral {
16
+ extension ShellArgument : ExpressibleByStringLiteral {
17
17
public init ( stringLiteral value: StringLiteralType ) {
18
18
self = . quoted( . init( value) )
19
19
}
20
20
}
21
21
22
- extension Argument : CustomStringConvertible {
22
+ extension ShellArgument : CustomStringConvertible {
23
23
public var description : String {
24
24
switch self {
25
25
case let . quoted( value) :
@@ -30,17 +30,17 @@ extension Argument: CustomStringConvertible {
30
30
}
31
31
}
32
32
33
- extension Argument {
33
+ extension ShellArgument {
34
34
public static func url( _ url: URL ) -> Self { url. absoluteString. verbatim }
35
35
}
36
36
37
37
38
38
extension StringProtocol {
39
- public var quoted : Argument { . init( quoted: self ) }
40
- public var verbatim : Argument { . init( verbatim: self ) }
39
+ public var quoted : ShellArgument { . init( quoted: self ) }
40
+ public var verbatim : ShellArgument { . init( verbatim: self ) }
41
41
}
42
42
43
43
extension Sequence < StringProtocol > {
44
- public var quoted : [ Argument ] { map ( \. quoted) }
45
- public var verbatim : [ Argument ] { map ( \. verbatim) }
44
+ public var quoted : [ ShellArgument ] { map ( \. quoted) }
45
+ public var verbatim : [ ShellArgument ] { map ( \. verbatim) }
46
46
}
0 commit comments