domain_aliases.lua 262 B

12345678910111213
  1. local cjson = require 'cjson'
  2. local function load_json(filename)
  3. local f = assert(io.open(filename))
  4. local json = cjson.decode(f:read('*a'))
  5. f:close()
  6. return json
  7. end
  8. local domain = load_json(arg[1])
  9. for k, _ in pairs(domain.domain_names) do
  10. print(k)
  11. end