build(format): scope root formatter and bridge warnings
This commit is contained in:
parent
bace59f90b
commit
b94b3045b2
@ -48,4 +48,4 @@
|
||||
--allman false
|
||||
|
||||
# Exclusions
|
||||
--exclude .build,.swiftpm,DerivedData,node_modules,dist,coverage,xcuserdata,AXorcist,Commander,Tachikoma,TauTUI,Core/PeekabooCore/Sources/PeekabooCore/Extensions/NSArray+Extensions.swift
|
||||
--exclude .build,.swiftpm,DerivedData,node_modules,dist,coverage,xcuserdata,AXorcist,Commander,Swiftdansi,Tachikoma,TauTUI,Core/PeekabooCore/Sources/PeekabooCore/Extensions/NSArray+Extensions.swift
|
||||
|
||||
@ -5,6 +5,7 @@ import os.log
|
||||
import PeekabooAutomationKit
|
||||
import PeekabooFoundation
|
||||
|
||||
// swiftlint:disable type_body_length
|
||||
public actor PeekabooBridgeClient {
|
||||
private let socketPath: String
|
||||
private let maxResponseBytes: Int
|
||||
@ -527,8 +528,14 @@ public actor PeekabooBridgeClient {
|
||||
menuItem: menuItem)))
|
||||
}
|
||||
|
||||
public func hideDock() async throws { try await self.sendExpectOK(.hideDock) }
|
||||
public func showDock() async throws { try await self.sendExpectOK(.showDock) }
|
||||
public func hideDock() async throws {
|
||||
try await self.sendExpectOK(.hideDock)
|
||||
}
|
||||
|
||||
public func showDock() async throws {
|
||||
try await self.sendExpectOK(.showDock)
|
||||
}
|
||||
|
||||
public func isDockHidden() async throws -> Bool {
|
||||
let response = try await self.send(.isDockHidden)
|
||||
switch response {
|
||||
@ -915,3 +922,4 @@ public actor PeekabooBridgeClient {
|
||||
}
|
||||
}
|
||||
}
|
||||
// swiftlint:enable type_body_length
|
||||
|
||||
@ -809,7 +809,7 @@ public struct PeekabooBridgeErrorEnvelope: Codable, Sendable, Error {
|
||||
}
|
||||
}
|
||||
|
||||
extension PermissionsStatus: Codable {
|
||||
extension PermissionsStatus: @retroactive Codable {
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case screenRecording
|
||||
case accessibility
|
||||
|
||||
Loading…
Reference in New Issue
Block a user