summaryrefslogtreecommitdiff
path: root/Sources/BubombCore/Executors/ExecutionResult.swift
diff options
context:
space:
mode:
authorgigagamerchaddhruv-spec <gigagamerchaddhruv-spec@users.noreply.github.com>2026-10-14 20:18:20 +0530
committergigagamerchaddhruv-spec <gigagamerchaddhruv-spec@users.noreply.github.com>2026-10-14 20:18:20 +0530
commitaceca8b5dfc8edd378ee9ff891bccb0f94c69f31 (patch)
tree08401ce8d050afbbe77514f479601a8e9535f4ec /Sources/BubombCore/Executors/ExecutionResult.swift
feat: launch Bubomb - native macOS menu bar utility ('Configure the boom')HEADmain
Diffstat (limited to 'Sources/BubombCore/Executors/ExecutionResult.swift')
-rw-r--r--Sources/BubombCore/Executors/ExecutionResult.swift21
1 files changed, 21 insertions, 0 deletions
diff --git a/Sources/BubombCore/Executors/ExecutionResult.swift b/Sources/BubombCore/Executors/ExecutionResult.swift
new file mode 100644
index 0000000..2abfa60
--- /dev/null
+++ b/Sources/BubombCore/Executors/ExecutionResult.swift
@@ -0,0 +1,21 @@
+import Foundation
+
+/// Output result from any single executor.
+public struct ExecutionResult: Sendable {
+ public var exitCode: Int?
+ public var stdout: String
+ public var stderr: String
+ public var duration: TimeInterval
+
+ public init(
+ exitCode: Int? = 0,
+ stdout: String = "",
+ stderr: String = "",
+ duration: TimeInterval = 0
+ ) {
+ self.exitCode = exitCode
+ self.stdout = stdout
+ self.stderr = stderr
+ self.duration = duration
+ }
+}