mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 06:53:22 +08:00
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
35 lines
1,005 B
Swift
35 lines
1,005 B
Swift
import Commander
|
|
import Foundation
|
|
|
|
@MainActor
|
|
struct StartCommand: ParsableCommand {
|
|
static var commandDescription: CommandDescription {
|
|
CommandDescription(commandName: "start", abstract: "Start swabble (foreground placeholder)")
|
|
}
|
|
|
|
mutating func run() async throws {
|
|
print("start: launchd helper not implemented; run 'swabble serve' instead")
|
|
}
|
|
}
|
|
|
|
@MainActor
|
|
struct StopCommand: ParsableCommand {
|
|
static var commandDescription: CommandDescription {
|
|
CommandDescription(commandName: "stop", abstract: "Stop swabble (placeholder)")
|
|
}
|
|
|
|
mutating func run() async throws {
|
|
print("stop: launchd helper not implemented yet")
|
|
}
|
|
}
|
|
|
|
@MainActor
|
|
struct RestartCommand: ParsableCommand {
|
|
static var commandDescription: CommandDescription {
|
|
CommandDescription(commandName: "restart", abstract: "Restart swabble (placeholder)")
|
|
}
|
|
|
|
mutating func run() async throws {
|
|
print("restart: launchd helper not implemented yet")
|
|
}
|
|
}
|