~singpolyma/dhall-ruby

ref: 0.2.0 dhall-ruby/bin/json-to-dhall -rwxr-xr-x 159 bytes View raw
a49a8991Stephen Paul Weber Customizable cache 1 year, 26 days ago
                                                                                
1
2
3
4
5
6
7
8
#!/usr/bin/ruby
# frozen_string_literal: true

require "dhall"
require "json"
using Dhall::AsDhall

STDOUT.write(CBOR.encode(JSON.parse(STDIN.read).as_dhall))