yaml-tidy

Sat, 17 Dec 2011 17:08:33 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 17 Dec 2011 17:08:33 +0000
changeset 0
0757d85e604b
permissions
-rwxr-xr-x

Initial commit

#!/usr/bin/env lua5.1

local yaml = require "yaml";

for i, fn in ipairs(arg) do
	local f = assert(io.open(fn, "r"));
	print(yaml.dump(yaml.load(f:read("*a"))));
	f:close();
end

mercurial