feat: add run result

This commit is contained in:
2025-10-14 22:23:06 +03:00
parent fe9568d7ae
commit b3844fa226
5 changed files with 118 additions and 33 deletions

View File

@@ -42,7 +42,7 @@ func main() {
Processor: processor,
}
if err := script.Run(ctx, conf); err != nil {
if _, err := script.Run(ctx, conf); err != nil {
fmt.Println(err)
}
}
@@ -130,8 +130,8 @@ func main() {
Processor: p.Process, // Process implements script.Processor
}
if err := script.Run(ctx, conf); err != nil {
if _, err := script.Run(ctx, conf); err != nil {
fmt.Println(err)
}
}
```
```