Skip to content

Commit

Permalink
Defer loading thor until CLI is referenced
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson committed Oct 7, 2023
1 parent 4bc824c commit 5ec20b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/nextgen.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "pathname"
require "thor"
require "zeitwerk"

loader = Zeitwerk::Loader.for_gem
Expand Down
2 changes: 2 additions & 0 deletions lib/nextgen/cli.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require "thor"

module Nextgen
class CLI < Thor
extend ThorExtensions
Expand Down

0 comments on commit 5ec20b3

Please sign in to comment.