lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt in gemsmith-8.0.0 vs lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt in gemsmith-8.1.0

- old
+ new

@@ -1,6 +1,5 @@ -require "yaml" require "thor" require "thor/actions" require "thor_plus/actions" require "runcom" @@ -8,11 +7,11 @@ # The Command Line Interface (CLI) for the gem. class CLI < Thor include Thor::Actions include ThorPlus::Actions - package_name <%= config.dig(:gem, :class) %>::Identity.version_label + package_name Identity.version_label def self.configuration Runcom::Configuration.new file_name: Identity.file_name end @@ -40,10 +39,10 @@ end desc "-v, [--version]", "Show gem version." map %w[-v --version] => :version def version - say <%= config.dig(:gem, :class) %>::Identity.version_label + say Identity.version_label end desc "-h, [--help=COMMAND]", "Show this message or get help for a command." map %w[-h --help] => :help def help task = nil