easycmd

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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) RunPowershell added in v0.2.0

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

func (*Cmd) RunPowershellWithDir added in v0.2.0

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

func (*Cmd) RunShell added in v0.2.0

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

func (*Cmd) RunShellWithDir added in v0.2.0

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

func (*Cmd) RunWithDir

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

type Command

type Command string

func (Command) Args added in v0.2.0

func (c Command) Args() []string

func (Command) Name added in v0.2.0

func (c Command) Name() string

func (Command) PowershellCommand added in v0.2.0

func (c Command) PowershellCommand() Command

func (Command) ShellCommand added in v0.2.0

func (c Command) ShellCommand() Command

func (Command) String added in v0.2.0

func (c Command) String() 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