Sha256: 867eaed202a3a0252f8a7f9c70150391c118f277a02db3de7e8d3efc71c5a356

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

require 'thor'
require_relative './unflatten'

module Unflatten
  class CLI < Thor
    include Unflatten
    desc "unflatten", "Unflattens Flat JSON into structured JSON"
    method_option :file, aliases: "-f"
    def unflatten(filename)
      puts unflattener(File.read(filename))
    end

    desc "flatten", "Flattens Structured JSON into Flat JSON"
    def flatten(filename)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flat_json_unflattener-0.2.0 lib/flat_json_unflattener/cli.rb