script

package
v0.0.0-...-c76b3c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 8 Imported by: 2

Documentation

Overview

Copyright (c) 2019 Stefaan Coussement MIT License

more info: https://github.com/stefaanc/golang-exec

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Script

type Script struct {
	Name  string
	Shell string // "cmd", powershell", "bash", "sh", ...

	Error error // error from New()
	// contains filtered or unexported fields
}

func New

func New(name string, shell string, code string) *Script

func NewFromFile

func NewFromFile(name string, shell string, file string) (*Script, error)

func NewFromString

func NewFromString(name string, shell string, code string) (*Script, error)

func (*Script) Command

func (s *Script) Command() string

func (*Script) NewReader

func (s *Script) NewReader(arguments interface{}) (io.Reader, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL