diff --git a/Sources/tart/Commands/Run.swift b/Sources/tart/Commands/Run.swift index 3f5e6db..4f3f5bf 100644 --- a/Sources/tart/Commands/Run.swift +++ b/Sources/tart/Commands/Run.swift @@ -108,6 +108,12 @@ struct Run: AsyncParsableCommand { if graphics && noGraphics { throw ValidationError("--graphics and --no-graphics are mutually exclusive") } + + let localStorage = VMStorageLocal() + let vmDir = try localStorage.open(name) + if try vmDir.state() == "suspended" { + suspendable = true + } } @MainActor