Add persisted state engine runner

This commit is contained in:
lash
2023-04-13 00:38:33 +01:00
parent 064418cb83
commit a2d947e106
12 changed files with 186 additions and 40 deletions

View File

@@ -21,7 +21,7 @@ func main() {
ctx := context.Background()
en := engine.NewSizedEngine(dir, uint32(size))
err := engine.Loop(&en, root, ctx, os.Stdin, os.Stdout)
err := engine.Loop(&en, os.Stdin, os.Stdout, ctx)
if err != nil {
fmt.Fprintf(os.Stderr, "loop exited with error: %v", err)
os.Exit(1)