bash

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashCommand

type BashCommand interface {
	Exec(string) (string, *CommandError)
}

type BashCommandImpl

type BashCommandImpl struct{}

func NewBashCommand

func NewBashCommand() BashCommandImpl

func (BashCommandImpl) Exec

func (cmd BashCommandImpl) Exec(command string) (string, *CommandError)

type CommandError

type CommandError struct {
	Err error
	Msg string
}

Jump to

Keyboard shortcuts

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