Skip to content
A Go task runner designed to run scripts across a wide range of platforms
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
shells
.gitattributes
.gitignore
.travis.yml
README.md
executor.go
shell.go
task.go
task_test.go

README.md

Executor GoDoc Build Status

Go based task runner for cross platform script execution

Executor is designed to simplify the task of running user configurable scripts across a wide range of platforms. This use case is common when writing a test runner or automated deployment tool like Depro.

Features

  • Simple API allows you to quickly get started and minimize boilerplate
  • Pluggable Shells allow you to pick and chose the shell plugins you wish to use, or even create your own.
  • Powerful Configuration of each task's arguments and environment, as well as the environment of your executor instance - allowing you to quickly build hierarchical environments.

Usage

package main

import (
    "os"

    executor "github.com/SierraSoftworks/Executor"
)

func main() {
    exec := executor.NewExecutor("powershell")
    exec.Environment["RUNNER"] = "Executor"

    task := executor.NewTask([]string{
        "Write-Host 'Hello World!'",
    }, nil, nil)

    err := exec.Run(task)
    if err != nil {
        os.Exit(1)
    }
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.