shell

package
Version: v0.0.0-...-75a46ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(task structs.Task)

Run - Function that executes the shell command

Types

type LinuxShell

type LinuxShell struct {
	Task       string
	TaskResult []byte
}

LinuxShell - struct to hold the task and result of the shell command

func (*LinuxShell) Command

func (d *LinuxShell) Command() string

Command - interface method that returns the command

func (*LinuxShell) Response

func (d *LinuxShell) Response() []byte

Response - interface method that holds the response to the command

type Shell

type Shell interface {
	Command() string
	Response() []byte
}

Shell - Interface for running shell commands

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL