use_packwerk 0.68.0 → 0.69.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 277da7b20ce7c61ddaca0c55a9db85d83ced70f6ead305861a91dba3b3a85316
4
- data.tar.gz: 9841971587ea4f7bb9f18fc61bb48293e485594a738eff3825156ac36ec24775
3
+ metadata.gz: fb9fada6d2dddd8ab4f85d7133c16fb28557c191ebd10e4e4e98e95d2bc3bb43
4
+ data.tar.gz: d6c81594392166bb4ca6e849bb5c3366276f1643fdb41243187edb3413d4bce3
5
5
  SHA512:
6
- metadata.gz: 1e0c11e3f4fec41cb8c585f1c533ef06015b4f129c3dc8423d5bdaf1bed7ce2f334042325f81aca8a660d63648005f1a3eba36677c7ae26d7a897aa7197448ce
7
- data.tar.gz: f735885b3a452f5969219fe7e7949678b2e91e304fd603e442dcf78ce37bb0202ddf8fc8822c8afb8135d683303324448b869640a62d3de28a5369c0744c7c0d
6
+ metadata.gz: d24503a5e649108ef31d5632e8f42b688684d95772aff2802c76cc08e45955cc360006ca51682506cac20bc85c3bfc65f31e4d64b4da9d30112da5a64742f165
7
+ data.tar.gz: c77c2e8e436e6c0a116746998a064fbc5551ac78f8f5dc3896a54d06faf09c66481f59c5efe72641f6d91a4cb0c12cd9b9c896ed213d3de3f7e3ba7a8bb4ce13
@@ -90,6 +90,24 @@ module UsePackwerk
90
90
  UsePackwerk.lint_package_yml_files!(parse_pack_names(pack_names))
91
91
  end
92
92
 
93
+ desc 'validate', 'Run bin/packwerk validate (detects cycles)'
94
+ sig { void }
95
+ def validate
96
+ system('bin/packwerk validate')
97
+ end
98
+
99
+ desc 'check [ packs/my_pack ]', 'Run bin/packwerk check'
100
+ sig { params(paths: String).void }
101
+ def check(*paths)
102
+ system("bin/packwerk check #{paths.join(' ')}")
103
+ end
104
+
105
+ desc 'update [ packs/my_pack ]', 'Run bin/packwerk update-deprecations'
106
+ sig { params(paths: String).void }
107
+ def update(*paths)
108
+ system("bin/packwerk update-deprecations #{paths.join(' ')}")
109
+ end
110
+
93
111
  desc 'regenerate_rubocop_todo [ packs/my_pack packs/my_other_pack ]', "Regenerate packs/*/#{RuboCop::Packs::PACK_LEVEL_RUBOCOP_TODO_YML} for one or more packs"
94
112
  sig { params(pack_names: String).void }
95
113
  def regenerate_rubocop_todo(*pack_names)
@@ -0,0 +1,25 @@
1
+ # typed: strict
2
+
3
+ module UsePackwerk
4
+ module Private
5
+ module InteractiveCli
6
+ module UseCases
7
+ class Check
8
+ extend T::Sig
9
+ extend T::Helpers
10
+ include Interface
11
+
12
+ sig { override.returns(String) }
13
+ def user_facing_name
14
+ 'Run bin/packwerk check'
15
+ end
16
+
17
+ sig { override.params(prompt: TTY::Prompt).void }
18
+ def perform!(prompt)
19
+ system('bin/packwerk check')
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -14,6 +14,7 @@ require 'use_packwerk/private/interactive_cli/use_cases/query'
14
14
  require 'use_packwerk/private/interactive_cli/use_cases/make_public'
15
15
  require 'use_packwerk/private/interactive_cli/use_cases/nest'
16
16
  require 'use_packwerk/private/interactive_cli/use_cases/rename'
17
+ require 'use_packwerk/private/interactive_cli/use_cases/check'
17
18
  require 'use_packwerk/private/interactive_cli/use_cases/update_deprecations'
18
19
  require 'use_packwerk/private/interactive_cli/use_cases/validate'
19
20
  require 'use_packwerk/private/interactive_cli/use_cases/regenerate_rubocop_todo'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: use_packwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.68.0
4
+ version: 0.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
@@ -302,6 +302,7 @@ files:
302
302
  - lib/use_packwerk/private/interactive_cli/pack_selector.rb
303
303
  - lib/use_packwerk/private/interactive_cli/team_selector.rb
304
304
  - lib/use_packwerk/private/interactive_cli/use_cases/add_dependency.rb
305
+ - lib/use_packwerk/private/interactive_cli/use_cases/check.rb
305
306
  - lib/use_packwerk/private/interactive_cli/use_cases/create.rb
306
307
  - lib/use_packwerk/private/interactive_cli/use_cases/get_info.rb
307
308
  - lib/use_packwerk/private/interactive_cli/use_cases/interface.rb