easycmd

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

README

easycmd

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyCmdError = errors.New("empty command")

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

func New

func New(configApplies ...configApply) *Cmd

func (*Cmd) Run

func (c *Cmd) Run(command Command) error

func (*Cmd) RunWithDir

func (c *Cmd) RunWithDir(command Command, runDir RunDir) error

type Command

type Command string

type Config

type Config struct {
	RunDir RunDir
	StdIn  StdIn
	StdOut StdOut
	StdErr StdErr
}

type RunDir

type RunDir string

type StdErr

type StdErr io.Writer

type StdIn

type StdIn io.Reader

type StdOut

type StdOut io.Writer

Jump to

Keyboard shortcuts

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