Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrFunctionAlreadyRegistered is returned after a command name conflict of a function ErrFunctionAlreadyRegistered = errors.New("function with the same name has already been registered") )
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry contains all the registed commands and variables
func (*Registry) ExecuteString ¶
ExecuteString will parse and run a termfx file/input and return the result as a string
func (*Registry) RegisterFunction ¶
func (r *Registry) RegisterFunction(name string, function RegistryFunction) error
RegisterFunction will add the function to the registry
Click to show internal directories.
Click to hide internal directories.