Skip to content

Commit 8a240b9

Browse files
committed
Merge branch 'release/0.1.0'
2 parents 774ccf3 + c86f1cd commit 8a240b9

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

Sources/Simctl/SimctlClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ extension SimctlClient {
288288
return .statusBarOverrides
289289

290290
case .clearStatusBarOverrides:
291-
return .statusBarOverridesClear
291+
return .statusBarOverrides
292292
}
293293
}
294294

Sources/SimctlCLI/Commands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extension ShellOutCommand {
120120
/// Usage: simctl status_bar <device> clear
121121
/// - Parameter device: The device Udid
122122
static func simctlClearStatusBarOverrides(device: UUID) -> ShellOutCommand {
123-
.init(string: "status_bar \(device.uuidString) clear")
123+
.init(string: simctl("status_bar \(device.uuidString) clear"))
124124
}
125125

126126
/// Set status bar overrides

Sources/SimctlCLI/SimctlServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ final class SimctlServer {
271271
/// Callback to be executed on clear status bar override request.
272272
/// - Parameter closure: The closure to be executed.
273273
func onClearStatusBarOverrides(_ closure: @escaping (UUID, String?) -> Result<String, Swift.Error>) {
274-
server.GET[ServerPath.statusBarOverridesClear.rawValue] = { request in
274+
server.GET[ServerPath.statusBarOverrides.rawValue] = { request in
275275
guard let deviceId = request.headerValue(for: .deviceUdid, UUID.init) else {
276276
return .badRequest(.text("Device Udid missing or corrupt."))
277277
}

Sources/SimctlShared/SimctlShared.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public enum ServerPath: String {
8383
case iCloudSync = "/simctl/iCloudSync"
8484
case uninstallApp = "/simctl/uninstallApp"
8585
case statusBarOverrides = "/simctl/statusBarOverrides"
86-
case statusBarOverridesClear = "/simctl/statusBarOverridesClear"
8786
}
8887

8988
/// Some permission changes will terminate the application if running.

bin/SimctlCLI

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)