executils

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRunner

type CmdRunner struct{}

CmdRunner implements Runner interface

func (CmdRunner) Run

func (r CmdRunner) Run(command string, args ...string) error

Run executes commands

func (CmdRunner) Start

func (r CmdRunner) Start(command string, args ...string) (*exec.Cmd, error)

Start starts the specified command but does not wait for it to complete.

type Runner

type Runner interface {
	Run(string, ...string) error
	Start(string, ...string) (*exec.Cmd, error)
}

Runner is mainly for executing shell command

Jump to

Keyboard shortcuts

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