An open API service indexing awesome lists of open source software.

https://github.com/drgomesp/execcutor

🪤 A tiny execution wrapper for programs that run safely and shutdown gracefully
https://github.com/drgomesp/execcutor

Last synced: 3 months ago
JSON representation

🪤 A tiny execution wrapper for programs that run safely and shutdown gracefully

Awesome Lists containing this project

README

        

# Executtor

> A tiny execution wrapper for programs that run safely and shutdown gracefully (if possible)

### Install Executtor

```bash
go get github.com/drgomesp/executtor
```

### Basic Example

```go
package main

import (
"context"
"log"

x "github.com/drgomesp/execcutor"
)

func main() {
// Run returns an error which you can capture and handle
_ = x.Run(func(ctx context.Context, args ...string) error {
// and the program runs here
return nil
})
}
```

### More examples

See [examples/](https://github.com/drgomesp/execcutor/blob/master/examples/main.go)

### License

[MIT](https://github.com/drgomesp/execcutor/blob/master/LICENSE)

---

Built by [Daniel Ribeiro](https://github.com/drgomesp).