@@ -73,7 +73,7 @@ extension Environment {
73
73
/// - Returns: `nil` if the `"CLICOLOR"` environment variable is undefined,
74
74
/// `true` if the `"CLICOLOR"` is defined to a non `"0"` value, `false`
75
75
/// otherwise.
76
- internal var cliColor : Bool ? {
76
+ var cliColor : Bool ? {
77
77
self [ " CLICOLOR " ] . map { $0 != " 0 " }
78
78
}
79
79
@@ -84,7 +84,7 @@ extension Environment {
84
84
///
85
85
/// - Returns: `true` if the `"CLICOLOR_FORCE"` environment variable is
86
86
/// defined, `false` otherwise.
87
- internal var cliColorForce : Bool {
87
+ var cliColorForce : Bool {
88
88
self [ " CLICOLOR_FORCE " ] != nil
89
89
}
90
90
@@ -95,12 +95,12 @@ extension Environment {
95
95
///
96
96
/// - Returns: `true` if the `"NO_COLOR"` environment variable is defined,
97
97
/// `false` otherwise.
98
- internal var noColor : Bool {
98
+ var noColor : Bool {
99
99
self [ " NO_COLOR " ] != nil
100
100
}
101
101
102
102
/// The coloring enabled by the `"TERM"` environment variable.
103
- internal var termColoring : TerminalColoring ? {
103
+ var termColoring : TerminalColoring ? {
104
104
switch self [ " TERM " ] {
105
105
case " dumb " : nil
106
106
case " xterm " : . _8
@@ -113,7 +113,7 @@ extension Environment {
113
113
/// The coloring enabled by the
114
114
/// [`"COLORTERM"`](https://github.com/termstandard/colors) environment
115
115
/// variable.
116
- internal var colorTerm : TerminalColoring ? {
116
+ var colorTerm : TerminalColoring ? {
117
117
switch self [ " COLORTERM " ] {
118
118
case " truecolor " , " 24bit " : . _16m
119
119
default : nil
@@ -126,7 +126,7 @@ extension Environment {
126
126
///
127
127
/// - Returns: `true` if the `"CI"` environment variable is defined, `false`
128
128
/// otherwise.
129
- internal var runningInCI : Bool {
129
+ var runningInCI : Bool {
130
130
self [ " CI " ] != nil
131
131
}
132
132
@@ -136,7 +136,7 @@ extension Environment {
136
136
///
137
137
/// - Returns: `true` if the `"XPC_SERVICE_NAME"` environment variable
138
138
/// includes `"com.apple.dt.xcode"`, `false` otherwise.
139
- internal var runningInXcode : Bool {
139
+ var runningInXcode : Bool {
140
140
self [ " XPC_SERVICE_NAME " ] ? . contains ( " com.apple.dt.xcode " ) ?? false
141
141
}
142
142
}
0 commit comments