Sha256: 7a5cfc143c42dce288445b19b8b7599df492edd96a326c777d1ee0c2e9cd8cd5
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 Bytes
Contents
class Eco::API::UseCases::Default::People::Utils::SplitCsv class Cli < Eco::API::UseCases::Cli desc "Splits an input file into multiple ones" callback do |_sess, options, _case| file = SCR.get_file(cli_name, required: true, should_exist: true) options.deep_merge!(source: {file: file}) end add_option("-max-rows", "The max count of rows of the output files") do |options| count = SCR.get_arg("-max-rows", with_param: true) options.deep_merge!(output: {file: {max_rows: count}}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems