~singpolyma/dhall-ruby

ref: 0.2.0 dhall-ruby/bin/yaml-to-dhall -rwxr-xr-x 173 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 "yaml"
using Dhall::AsDhall

STDOUT.write(CBOR.encode(YAML.safe_load(STDIN.read, [Symbol]).as_dhall))