Versions in this module Expand all Collapse all v0 v0.2.0 Sep 8, 2021 v0.1.0 Sep 3, 2021 Changes in this version + var ErrCommandArgsNotFound = errors.New("command arguments not found") + var ErrCommandNotFound = errors.New("command not found") + var ErrCommandsMustBeFed = errors.New("commands must be provided") + var ErrNilCmdHelper = errors.New("nil cmdHelper") + func StrArrReplace(spl string, arr, rarr []string) []string + type CmdHelper struct + CommandArgs map[string][]string + Writer io.Writer + func New(cmds map[string][]string, writer io.Writer) (c *CmdHelper, err error) + func (c *CmdHelper) CliRunner(name string, input io.Reader, args ...string) (string, error) + func (c *CmdHelper) CliRunnerChan(name string, input io.Reader, singnal chan<- *exec.Cmd, args ...string) (string, error) + func (c *CmdHelper) Format(cmdKey, spl string, rarr []string) + func (c *CmdHelper) GetFormatted(cmdKey, spl string, rarr []string) []string + func (c *CmdHelper) Run(name string, input io.Reader, cmdKey string) (string, error)