lib/js_dependency/cli.rb in js_dependency-0.3.14 vs lib/js_dependency/cli.rb in js_dependency-0.3.15
- old
+ new
@@ -119,11 +119,11 @@
method_option :name_level, type: :numeric, aliases: "-n", desc: "Output name level"
method_option :excludes, type: :array, aliases: "-e", desc: "Exclude the word that is included in the path"
method_option :alias_paths, type: :hash, aliases: "-a", desc: "Alias paths by hash format."
method_option :file_config, type: :string, aliases: "-f", desc: "Configuration file path."
method_option :identifier, type: :string, desc: "Embed id in markdown."
-
+ method_option :exclude_output_names, type: :array, desc: "Exclude output names"
def export_markdown_report
args = JsDependency::CliUtils::Yaml.new(path: options[:file_config]).args
config = JsDependency::CliUtils::Config.new(options, args)
puts JsDependency.export_markdown_report(
config.src_path,
@@ -131,10 +131,11 @@
child_analyze_level: config.child_analyze_level,
parent_analyze_level: config.parent_analyze_level,
alias_paths: config.alias_paths,
name_level: config.name_level,
excludes: config.excludes,
- identifier: config.identifier
+ identifier: config.identifier,
+ exclude_output_names: config.exclude_output_names
)
end
end
end