Skip to content

Commit

Permalink
check and validate
Browse files Browse the repository at this point in the history
  • Loading branch information
tstannard committed Jun 11, 2024
1 parent a9db1be commit 94ad97b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/packs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,22 @@ def self.update

sig { returns(T::Boolean) }
def self.validate
Private.system_with('bin/packwerk validate')
if Packs.config.use_pks
Private.system_with('bin/pks validate')
else
Private.system_with('bin/packwerk validate')
end
end

sig { params(files: T::Array[String]).returns(T::Boolean) }
def self.check(files)
Private.system_with("bin/packwerk check #{files.join(' ')}")
if Packs.config.use_pks
Private.system_with("bin/pks check #{files.join(' ')}")

else
Private.system_with("bin/packwerk check #{files.join(' ')}")

end
end

sig do
Expand Down

0 comments on commit 94ad97b

Please sign in to comment.