function Registry.FlushAutoExecBuffer(x)for k,i in ipairs(x.AutoExecBuffer)do for k,i in ipairs(i)do x.Cmdr.Dispatcher:EvaluateAndRun(i)end end end return function(x)Registry.Cmdr=x return Registry end
--- Runs all pending auto exec commands in Registry.AutoExecBuffer
function Registry:FlushAutoExecBuffer()
	for _, commandGroup in ipairs(self.AutoExecBuffer) do
		for _, command in ipairs(commandGroup) do
			self.Cmdr.Dispatcher:EvaluateAndRun(command)
		end
	end
end

return function(cmdr)
	Registry.Cmdr = cmdr

	return Registry
end
