lib/tapioca/cli.rb in tapioca-0.16.4 vs lib/tapioca/cli.rb in tapioca-0.16.5
- old
+ new
@@ -109,12 +109,11 @@
desc: "Suppresses file creation output",
default: false
option :workers,
aliases: ["-w"],
type: :numeric,
- desc: "Number of parallel workers to use when generating RBIs (default: 2)",
- default: 2
+ desc: "Number of parallel workers to use when generating RBIs (default: auto)"
option :rbi_max_line_length,
type: :numeric,
desc: "Set the max line length of generated RBIs. Signatures longer than the max line length will be wrapped",
default: DEFAULT_RBI_MAX_LINE_LENGTH
option :environment,
@@ -142,10 +141,15 @@
default: []
option :compiler_options,
type: :hash,
desc: "Options to pass to the DSL compilers",
default: {}
+ option :lsp_addon,
+ type: :boolean,
+ desc: "Generate DSL RBIs from the LSP addon. Internal to tapioca and not intended for end-users",
+ default: false,
+ hide: true
def dsl(*constant_or_paths)
set_environment(options)
# Assume anything starting with a capital letter or colon is a class, otherwise a path
constants, paths = constant_or_paths.partition { |c| c =~ /\A[A-Z:]/ }
@@ -164,9 +168,10 @@
number_of_workers: options[:workers],
rbi_formatter: rbi_formatter(options),
app_root: options[:app_root],
halt_upon_load_error: options[:halt_upon_load_error],
compiler_options: options[:compiler_options],
+ lsp_addon: options[:lsp_addon],
}
command = if options[:verify]
Commands::DslVerify.new(**command_args)
elsif options[:list_compilers]