interactive

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commander

type Commander interface {
	IsResponsible(commandName string) bool
	Execute(e *devenv.EnvironmentConfiguration, executeScriptDirectory, repository string, args []string) error
}

Commander represents a unit of work for rhe shell

type Interpreter

type Interpreter struct {
	ExecuteScriptDirectory string
	EnvConfiguration       devenv.EnvironmentConfiguration
}

Interpreter contains data for where and what to do

func NewInterpreter

func NewInterpreter(path string, ev devenv.EnvironmentConfiguration) *Interpreter

NewInterpreter returns a new interpreter

func (*Interpreter) Execute

func (i *Interpreter) Execute(commandline string) error

Execute takes a line entered by the user and calls the command

Jump to

Keyboard shortcuts

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