class Eco::API::UseCases::Default::Meta::GraphQLSchema class Cli < Eco::API::UseCases::Cli desc "Retrieves and stores the GraphQL Schema" callback do |_sess, options, _case| file = SCR.get_arg(cli_name, with_param: true) options.deep_merge!(output: {file: {name: file}}) end add_option("-format", "Kind of extract (definition | json | yaml )") do |options| format = SCR.get_arg("-format", with_param: true) options.deep_merge!(output: {format: format}) end end end