refactor: updated the executor lookup table #57
Loading…
Reference in a new issue
No description provided.
Delete branch "remove-the-executor-interface"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updated the executor map by changing the map type from
map[string]Executor
tomap[string]func(string, bool, []string) error
in order to reduce the cost of initialising the map. Previously the map initialised all executors and only ran the executor called by the command, now the map maps the command to the function of typefunc(string, bool, []string) error
that will initialise and run the single executor called by the command. As a result theExecutor
interface is no longer needed and has been removed.4f85a4454b
to89e53bcc9f