Method: Jets::Commands::Base.eager_load!

Defined in:
lib/jets/commands/base.rb

.eager_load!Object

For help menu to list all commands, we must eager load the command classes.

There is special eager_load logic here because this is called super early as part of the CLI start. We cannot assume we have full access to to the project yet.



138
139
140
141
142
# File 'lib/jets/commands/base.rb', line 138

def eager_load!
  return if Jets::Turbo.afterburner?

  Jets::Autoloaders.cli.eager_load
end