~singpolyma/dhall-ruby

ref: eef5a51ad67c324885f88b93f89f3acc0fcaae6c dhall-ruby/bin/yaml-to-dhall -rwxr-xr-x 173 bytes
eef5a51aStephen Paul Weber Fix lint 3 years 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))