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