proxyexecution

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ExitCodeExitError = 990

ExitCodeExitError of excuted cmd could not be determined

View Source
const ExitSuccessError = 991

ExitSuccessError ExitCode of successfully executed cmd could not be determined

View Source
const ExtCodeError = 993

ExtCodeError general error occurred when executing cmd

Variables

This section is empty.

Functions

func ExecuteDroxyCommand added in v0.5.1

func ExecuteDroxyCommand(args []string) int

Types

type CommandBuilder

type CommandBuilder interface {
	BuildCommandFromConfig(commandName string, cfg *config.Configuration) (*exec.Cmd, error)
}

CommandBuilder builds a executable command object

type CommandResultHandler

type CommandResultHandler interface {
	HandleCommandResult(*exec.Cmd, error) int
}

CommandResultHandler handles the result of an executed command

func NewCommandResultHandler

func NewCommandResultHandler() CommandResultHandler

NewCommandResultHandler handles an executed command and it's error code to get the executed commands exit code.

type CommandRunner

type CommandRunner interface {
	RunCommand(cmd *exec.Cmd) error
}

CommandRunner runs a command

func NewCommandRunner

func NewCommandRunner() CommandRunner

NewCommandRunner returns a new commandRunner which can run a exec.Cmd

type ConfigLoader

type ConfigLoader interface {
	Load() *config.Configuration
}

ConfigLoader loads configuration

type ExecutableNameParser

type ExecutableNameParser interface {
	ParseCommandNameFromCommandLine() string
}

ExecutableNameParser parsed the name of the current executed file from cli arguments

func NewExecutableNameParser

func NewExecutableNameParser() ExecutableNameParser

NewExecutableNameParser returns a new executableNameParser

Jump to

Keyboard shortcuts

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