lib/packwerk/cli.rb in packwerk-2.2.0 vs lib/packwerk/cli.rb in packwerk-2.2.1

- old
+ new

@@ -65,11 +65,10 @@ Usage: #{$PROGRAM_NAME} <subcommand> Subcommands: init - set up packwerk check - run all checks - update - update deprecated references (deprecated, use update-deprecations instead) update-deprecations - update deprecated references validate - verify integrity of packwerk and package configuration help - display help information about packwerk USAGE true @@ -126,21 +125,21 @@ sig do params( relative_file_paths: T::Array[String], ignore_nested_packages: T::Boolean - ).returns(FilesForProcessing::AbsoluteFileSet) + ).returns(FilesForProcessing::RelativeFileSet) end def fetch_files_to_process(relative_file_paths, ignore_nested_packages) - absolute_file_set = FilesForProcessing.fetch( + relative_file_set = FilesForProcessing.fetch( relative_file_paths: relative_file_paths, ignore_nested_packages: ignore_nested_packages, configuration: @configuration ) abort("No files found or given. "\ - "Specify files or check the include and exclude glob in the config file.") if absolute_file_set.empty? - absolute_file_set + "Specify files or check the include and exclude glob in the config file.") if relative_file_set.empty? + relative_file_set end sig { params(_paths: T::Array[String]).returns(T::Boolean) } def validate(_paths) @progress_formatter.started_validation do @@ -188,10 +187,10 @@ relative_file_paths = params ignore_nested_packages = false end ParseRun.new( - absolute_file_set: fetch_files_to_process(relative_file_paths, ignore_nested_packages), + relative_file_set: fetch_files_to_process(relative_file_paths, ignore_nested_packages), configuration: @configuration, progress_formatter: @progress_formatter, offenses_formatter: @offenses_formatter ) end