class Eco::API::UseCases::Default::Locations::CsvToTree # Class to define the CLI integration of a usecase anywhere it suits. class Cli < Eco::API::UseCases::Cli str = "Creates a JSON file with the tagtree from a CSV file" desc str 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