package
1.1.0
Repository: https://github.com/thevan4/go-billet.git
Documentation: pkg.go.dev

# README

Executor

A simple command executor. Supports file paths as arguments.

Incoming data must be an array of bytes without any encoding.

Example

import "github.com/thevan4/go-billet/executor"
...
fullCommand := "/usr/bin/python"
contextFolder := "/someContextFolder"
arguments := []string{"/opt/some/scripts/template.py", "/execute-file-1464679034681560983"}
stdout, stderr, exitCode, err := executor.Execute(fullCommand, contextFolder, arguments)
if err != nil {
    // your error handling
}
// do something with the stdout/stderr/exitCode