dnsmanager/tools/zone_from_json.cr

8 lines
117 B
Crystal
Raw Permalink Normal View History

require "./src/storage.cr"
alias DSZ = DNSManager::Storage::Zone
zone = DSZ.from_json File.read(ARGV[0])
pp! zone