shellexecutor

package
v0.0.0-...-3fa40c8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package shellexecutor offers a basic ShellExecutor object that can be used to execute command-line applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShellExecutor

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

ShellExecutor is a shell executor object.

func NewShellExecutor

func NewShellExecutor() *ShellExecutor

NewShellExecutor returns a new ShellExecutor object.

func (ShellExecutor) Shell

func (e ShellExecutor) Shell(name string, arg ...string) error

Shell executes a program with the specified arguments. The execution is silent, and an error is returned if the execution ends with an error code.

Jump to

Keyboard shortcuts

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