Sha256: 58a5b35d762524bb7f8b45b57fe8ac7e56f109609f69c7a92ecc1a1dbda5e8c0
Contents?: true
Size: 538 Bytes
Versions: 44
Compression:
Stored size: 538 Bytes
Contents
#!/usr/bin/env ruby require "yaml" require "expressir/express/parser" require "expressir/express/formatter" require "expressir/express/schema_head_formatter" require "expressir/express/hyperlink_formatter" exp_files = ARGV repository = Expressir::Express::Parser.from_files(exp_files) formatter = Class.new(Expressir::Express::Formatter) do include Expressir::Express::SchemaHeadFormatter include Expressir::Express::HyperlinkFormatter end result = repository.to_hash(formatter: formatter, skip_empty: true) puts YAML.dump(result)
Version data entries
44 entries across 44 versions & 1 rubygems