lib/hanami/cli/commands/app/routes.rb in hanami-cli-2.0.0.beta2 vs lib/hanami/cli/commands/app/routes.rb in hanami-cli-2.0.0.beta3

- old
+ new

@@ -1,9 +1,8 @@ # frozen_string_literal: true require "hanami" -require "hanami/router/inspector" module Hanami module CLI module Commands module App @@ -38,9 +37,10 @@ required: false, desc: "Output format" # @api private def call(format: DEFAULT_FORMAT, **) + require "hanami/router/inspector" require "hanami/prepare" inspector = Hanami::Router::Inspector.new(formatter: resolve_formatter(format)) app.router(inspector: inspector) out.puts inspector.call end