easycmd

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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(commandStr string) error

func (*Cmd) RunPowershell added in v0.2.0

func (c *Cmd) RunPowershell(commandStr string) error

func (*Cmd) RunPowershellWithDir added in v0.2.0

func (c *Cmd) RunPowershellWithDir(commandStr string, runDirStr string) error

func (*Cmd) RunShell added in v0.2.0

func (c *Cmd) RunShell(commandStr string) error

func (*Cmd) RunShellWithDir added in v0.2.0

func (c *Cmd) RunShellWithDir(commandStr string, runDirStr string) error

func (*Cmd) RunWithDir

func (c *Cmd) RunWithDir(commandStr string, runDirStr string) error

type Config

type Config struct {
	RunDir runDir
	StdIn  stdIn
	StdOut stdOut
	StdErr stdErr
}

Jump to

Keyboard shortcuts

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