lib/tapioca/cli.rb in tapioca-0.16.5 vs lib/tapioca/cli.rb in tapioca-0.16.6
- old
+ new
@@ -143,11 +143,11 @@
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",
+ desc: "Generate DSL RBIs from the LSP add-on. Internal to Tapioca and not intended for end-users",
default: false,
hide: true
def dsl(*constant_or_paths)
set_environment(options)
@@ -264,10 +264,15 @@
default: DEFAULT_ENVIRONMENT
option :halt_upon_load_error,
type: :boolean,
desc: "Halt upon a load error while loading the Rails application",
default: true
+ option :lsp_addon,
+ type: :boolean,
+ desc: "Generate Gem RBIs from the LSP add-on. Internal to Tapioca and not intended for end-users",
+ default: false,
+ hide: true
def gem(*gems)
set_environment(options)
all = options[:all]
verify = options[:verify]
@@ -298,9 +303,10 @@
number_of_workers: options[:workers],
auto_strictness: options[:auto_strictness],
dsl_dir: options[:dsl_dir],
rbi_formatter: rbi_formatter(options),
halt_upon_load_error: options[:halt_upon_load_error],
+ lsp_addon: options[:lsp_addon],
}
command = if verify
Commands::GemVerify.new(**command_args)
elsif !gems.empty? || all