chore(ci): fix biome + swiftformat lint
This commit is contained in:
committed by
Peter Steinberger
parent
7d51bf0eb0
commit
483c0e4cea
@@ -8,9 +8,9 @@ enum GatewayAutostartPolicy {
|
|||||||
static func shouldEnsureLaunchAgent(
|
static func shouldEnsureLaunchAgent(
|
||||||
mode: AppState.ConnectionMode,
|
mode: AppState.ConnectionMode,
|
||||||
paused: Bool,
|
paused: Bool,
|
||||||
attachExistingOnly: Bool
|
attachExistingOnly: Bool,
|
||||||
) -> Bool {
|
) -> Bool
|
||||||
|
{
|
||||||
shouldStartGateway(mode: mode, paused: paused) && !attachExistingOnly
|
shouldStartGateway(mode: mode, paused: paused) && !attachExistingOnly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,9 +50,8 @@ enum GatewayLaunchAgentManager {
|
|||||||
private static func writePlist(bundlePath: String, port: Int) {
|
private static func writePlist(bundlePath: String, port: Int) {
|
||||||
let gatewayBin = self.gatewayExecutablePath(bundlePath: bundlePath)
|
let gatewayBin = self.gatewayExecutablePath(bundlePath: bundlePath)
|
||||||
let relayDir = self.relayDir(bundlePath: bundlePath)
|
let relayDir = self.relayDir(bundlePath: bundlePath)
|
||||||
let preferredPath =
|
let preferredPath = ([relayDir] + CommandResolver.preferredPaths())
|
||||||
([relayDir] + CommandResolver.preferredPaths())
|
.joined(separator: ":")
|
||||||
.joined(separator: ":")
|
|
||||||
let plist = """
|
let plist = """
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ struct SkillsSettings: View {
|
|||||||
isPrimary: isPrimary)
|
isPrimary: isPrimary)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if !self.model.skills.isEmpty && self.filteredSkills.isEmpty {
|
if !self.model.skills.isEmpty, self.filteredSkills.isEmpty {
|
||||||
Text("No skills match this filter.")
|
Text("No skills match this filter.")
|
||||||
.font(.callout)
|
.font(.callout)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
@@ -143,13 +143,13 @@ private enum SkillsFilter: String, CaseIterable, Identifiable {
|
|||||||
var title: String {
|
var title: String {
|
||||||
switch self {
|
switch self {
|
||||||
case .all:
|
case .all:
|
||||||
return "All"
|
"All"
|
||||||
case .ready:
|
case .ready:
|
||||||
return "Ready"
|
"Ready"
|
||||||
case .needsSetup:
|
case .needsSetup:
|
||||||
return "Needs Setup"
|
"Needs Setup"
|
||||||
case .disabled:
|
case .disabled:
|
||||||
return "Disabled"
|
"Disabled"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -210,15 +210,15 @@ private struct SkillRow: View {
|
|||||||
private var sourceLabel: String {
|
private var sourceLabel: String {
|
||||||
switch self.skill.source {
|
switch self.skill.source {
|
||||||
case "clawdis-bundled":
|
case "clawdis-bundled":
|
||||||
return "Bundled"
|
"Bundled"
|
||||||
case "clawdis-managed":
|
case "clawdis-managed":
|
||||||
return "Managed"
|
"Managed"
|
||||||
case "clawdis-workspace":
|
case "clawdis-workspace":
|
||||||
return "Workspace"
|
"Workspace"
|
||||||
case "clawdis-extra":
|
case "clawdis-extra":
|
||||||
return "Extra"
|
"Extra"
|
||||||
default:
|
default:
|
||||||
return self.skill.source
|
self.skill.source
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user