lib/pragmater/cli.rb in pragmater-6.2.0 vs lib/pragmater/cli.rb in pragmater-6.2.1

- old
+ new

@@ -10,22 +10,25 @@ class CLI < Thor include Thor::Actions package_name Identity.version_label + # rubocop:disable Metrics/MethodLength def self.configuration - Runcom::Config.new Identity.name, defaults: { - add: { - comments: "", - includes: [] - }, - remove: { - comments: "", - includes: [] - } - } + Runcom::Config.new Identity.name, + defaults: { + add: { + comments: "", + includes: [] + }, + remove: { + comments: "", + includes: [] + } + } end + # rubocop:enable Metrics/MethodLength def initialize args = [], options = {}, config = {} super args, options, config @configuration = self.class.configuration rescue Runcom::Errors::Base => error @@ -83,14 +86,16 @@ desc "-c, [--config]", "Manage gem configuration." map %w[-c --config] => :config method_option :edit, aliases: "-e", desc: "Edit gem configuration.", - type: :boolean, default: false + type: :boolean, + default: false method_option :info, aliases: "-i", desc: "Print gem configuration.", - type: :boolean, default: false + type: :boolean, + default: false def config path = configuration.path if options.edit? then `#{ENV["EDITOR"]} #{path}` elsif options.info?