base_dirs = (function()
local dirs = {}
return dirs
end)()
dirs[#dirs + 1] = {'~/.ghq', max_depth = 5}
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
print(formatting)
tprint(v, indent+1)
else
print(formatting .. v)
end
end
end