lib/pragmater/cli.rb in pragmater-4.3.1 vs lib/pragmater/cli.rb in pragmater-5.0.0
- old
+ new
@@ -14,15 +14,15 @@
def self.configuration
Runcom::Configuration.new project_name: Identity.name, defaults: {
add: {
comments: "",
- whitelist: []
+ includes: []
},
remove: {
comments: "",
- whitelist: []
+ includes: []
}
}
end
def initialize args = [], options = {}, config = {}
@@ -37,24 +37,24 @@
method_option :comments,
aliases: "-c",
desc: "Pragma comments",
type: :array,
default: []
- method_option :whitelist,
+ method_option :includes,
aliases: "-w",
- desc: "File whitelist",
+ desc: "File include list",
type: :array,
default: []
def add path = "."
settings = configuration.merge add: {
comments: options[:comments],
- whitelist: options[:whitelist]
+ includes: options[:includes]
}
runner = Runner.new path,
comments: settings.dig(:add, :comments),
- whitelist: settings.dig(:add, :whitelist)
+ includes: settings.dig(:add, :includes)
runner.run(action: :add) { |file| say_status :info, "Processed: #{file}.", :green }
end
desc "-r, [--remove=PATH]", "Remove pragma comments from source file(s)."
@@ -62,23 +62,23 @@
method_option :comments,
aliases: "-c",
desc: "Pragma comments",
type: :array,
default: []
- method_option :whitelist,
+ method_option :includes,
aliases: "-w",
- desc: "File whitelist",
+ desc: "File include list",
type: :array,
default: []
def remove path = "."
settings = configuration.merge remove: {
comments: options[:comments],
- whitelist: options[:whitelist]
+ includes: options[:includes]
}
runner = Runner.new path,
comments: settings.dig(:remove, :comments),
- whitelist: settings.dig(:remove, :whitelist)
+ includes: settings.dig(:remove, :includes)
runner.run(action: :remove) { |file| say_status :info, "Processed: #{file}.", :green }
end
desc "-c, [--config]", "Manage gem configuration."