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
- Host: GitHub
- URL: https://github.com/drgomesp/execcutor
- Owner: drgomesp
- License: mit
- Created: 2022-04-21T16:47:15.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-22T12:17:12.000Z (about 3 years ago)
- Last Synced: 2025-01-13T00:32:35.071Z (4 months ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport (
"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).