lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb in gemsmith-19.1.0 vs lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb in gemsmith-19.2.0
- old
+ new
@@ -1,5 +1,7 @@
+require "core"
+
<% namespace do %>
module CLI
# The main Command Line Interface (CLI) object.
class Shell
include Actions::Import[:config, :specification, :logger]
@@ -7,10 +9,10 @@
def initialize parser: Parser.new, **dependencies
super(**dependencies)
@parser = parser
end
- def call arguments = []
+ def call arguments = Core::EMPTY_ARRAY
perform parser.call(arguments)
rescue OptionParser::ParseError => error
logger.error { error.message }
end