Sha256: 117d84b7e865bb954b53bccd41d62388e484931bdb3e39ca1c1e18399feac81e

Contents?: true

Size: 336 Bytes

Versions: 3

Compression:

Stored size: 336 Bytes

Contents

class Eco::API::UseCases::Default::Utils::JsonToCsv
  class Cli < Eco::API::UseCases::Cli
    desc "Transforms an input JSON file into a CSV one."

    callback do |_sess, options, _case|
      file = SCR.get_file(cli_name, required: true, should_exist: true)
      options.deep_merge!(source: {file: file})
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/usecases/default/utils/cli/json_to_csv_cli.rb
eco-helpers-3.0.20 lib/eco/api/usecases/default/utils/cli/json_to_csv_cli.rb
eco-helpers-3.0.19 lib/eco/api/usecases/default/utils/cli/json_to_csv_cli.rb