mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-21 15:12:29 +02:00
21 lines
527 B
Go
21 lines
527 B
Go
package executor
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/j3ssie/osmedeus/v5/internal/core"
|
|
)
|
|
|
|
// ExportRunCompleted writes run completion state to a JSON file
|
|
// Uses the same format as run-state.json (StateExport) for consistency
|
|
func ExportRunCompleted(path string, result *core.WorkflowResult, execCtx *core.ExecutionContext) error {
|
|
return ExportState(path, result, execCtx)
|
|
}
|
|
|
|
// RemoveRunCompleted removes the run-completed.json file if it exists
|
|
func RemoveRunCompleted(path string) {
|
|
if path != "" {
|
|
_ = os.Remove(path)
|
|
}
|
|
}
|