Skip to content

Commit

Permalink
ref: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-souza committed Sep 26, 2024
1 parent 17672e1 commit b487220
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions lua/ollero/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,4 @@ function M.apply_mappings(mappings)
end
end

local CommandBuilder = {}

function CommandBuilder:new(opts)
local obj = { internal_cmd = "" }

setmetatable(obj, self)
self.__index = self

return obj
end

function CommandBuilder:interactive()
return self
end

function CommandBuilder:run(input)
self.internal_cmd = input .. " "
return self
end

function CommandBuilder:build()
return self.internal_cmd
end

M.CommandBuilder = CommandBuilder

return M

0 comments on commit b487220

Please sign in to comment.