Class: Tapioca::ConfigBuilder

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/config_builder.rb

Constant Summary collapse

DEFAULT_OPTIONS =
T.let({
  "postrequire" => Config::DEFAULT_POSTREQUIRE,
  "outdir" => nil,
  "generate_command" => default_command,
  "exclude" => [],
  "typed_overrides" => Config::DEFAULT_OVERRIDES,
  "todos_path" => Config::DEFAULT_TODOSPATH,
  "generators" => [],
}.freeze, T::Hash[String, T.untyped])

Class Method Summary collapse

Class Method Details

.from_options(command, options) ⇒ Object



12
13
14
15
16
# File 'lib/tapioca/config_builder.rb', line 12

def from_options(command, options)
  Config.from_hash(
    merge_options(default_options(command), config_options, options)
  )
end