packwerk 3.2.0 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/packwerk/association_inspector.rb +17 -4
  3. data/lib/packwerk/checker.rb +3 -3
  4. data/lib/packwerk/configuration.rb +4 -0
  5. data/lib/packwerk/const_node_inspector.rb +2 -2
  6. data/lib/packwerk/constant_name_inspector.rb +2 -2
  7. data/lib/packwerk/offenses_formatter.rb +3 -3
  8. data/lib/packwerk/package.rb +1 -1
  9. data/lib/packwerk/package_todo.rb +1 -4
  10. data/lib/packwerk/parsers/factory.rb +3 -3
  11. data/lib/packwerk/parsers/ruby.rb +7 -0
  12. data/lib/packwerk/reference_extractor.rb +29 -1
  13. data/lib/packwerk/reference_offense.rb +1 -1
  14. data/lib/packwerk/run_context.rb +15 -4
  15. data/lib/packwerk/validator.rb +3 -3
  16. data/lib/packwerk/version.rb +1 -1
  17. data/lib/packwerk.rb +1 -0
  18. data/sorbet/config +1 -0
  19. data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +3280 -3450
  20. data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +2322 -1782
  21. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +2654 -3268
  22. data/sorbet/rbi/gems/ast@2.4.2.rbi +535 -6
  23. data/sorbet/rbi/gems/better_html@2.0.1.rbi +529 -0
  24. data/sorbet/rbi/gems/builder@3.2.4.rbi +4 -4
  25. data/sorbet/rbi/gems/byebug@11.1.3.rbi +32 -4
  26. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +1750 -1840
  27. data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +15 -15
  28. data/sorbet/rbi/gems/crass@1.0.6.rbi +489 -5
  29. data/sorbet/rbi/gems/erubi@1.11.0.rbi +24 -21
  30. data/sorbet/rbi/gems/i18n@1.12.0.rbi +395 -395
  31. data/sorbet/rbi/gems/json@2.6.2.rbi +70 -77
  32. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +1 -1
  33. data/sorbet/rbi/gems/loofah@2.18.0.rbi +134 -134
  34. data/sorbet/rbi/gems/m@1.6.0.rbi +60 -60
  35. data/sorbet/rbi/gems/method_source@1.1.0.rbi +303 -0
  36. data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +22 -28
  37. data/sorbet/rbi/gems/minitest@5.16.2.rbi +384 -396
  38. data/sorbet/rbi/gems/mocha@1.14.0.rbi +589 -589
  39. data/sorbet/rbi/gems/netrc@0.11.0.rbi +37 -32
  40. data/sorbet/rbi/gems/nokogiri@1.15.3.rbi +962 -946
  41. data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.24.0.rbi} +85 -82
  42. data/sorbet/rbi/gems/{parser@3.2.2.0.rbi → parser@3.3.1.0.rbi} +1679 -1609
  43. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +1 -1
  44. data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.27.0.rbi} +13473 -6472
  45. data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.7.1.rbi} +42 -33
  46. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +148 -338
  47. data/sorbet/rbi/gems/rack@2.2.4.rbi +1079 -1130
  48. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +354 -22
  49. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +113 -259
  50. data/sorbet/rbi/gems/railties@7.0.3.1.rbi +642 -638
  51. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +109 -99
  52. data/sorbet/rbi/gems/rake@13.0.6.rbi +714 -599
  53. data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.12.rbi} +865 -801
  54. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +853 -870
  55. data/sorbet/rbi/gems/rexml@3.2.5.rbi +480 -477
  56. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +1621 -1622
  57. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +507 -526
  58. data/sorbet/rbi/gems/rubocop-shopify@2.9.0.rbi +1 -1
  59. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +186 -203
  60. data/sorbet/rbi/gems/rubocop@1.34.1.rbi +8126 -8367
  61. data/sorbet/rbi/gems/{ruby-lsp@0.2.1.rbi → ruby-lsp@0.2.3.rbi} +2 -2
  62. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
  63. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +90 -90
  64. data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
  65. data/sorbet/rbi/gems/spring@4.0.0.rbi +104 -104
  66. data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +1 -1
  67. data/sorbet/rbi/gems/{tapioca@0.9.2.rbi → tapioca@0.13.3.rbi} +1596 -1253
  68. data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.3.1.rbi} +1047 -652
  69. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +531 -513
  70. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +13 -13
  71. data/sorbet/rbi/gems/{yard-sorbet@0.6.1.rbi → yard-sorbet@0.8.1.rbi} +132 -92
  72. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.36.rbi} +3158 -3067
  73. data/sorbet/rbi/gems/zeitwerk@2.6.4.rbi +149 -145
  74. metadata +22 -94
  75. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
  76. data/.github/pull_request_template.md +0 -28
  77. data/.github/workflows/ci.yml +0 -93
  78. data/.github/workflows/cla.yml +0 -22
  79. data/.gitignore +0 -13
  80. data/.rubocop.yml +0 -75
  81. data/.ruby-version +0 -1
  82. data/CODEOWNERS +0 -1
  83. data/CODE_OF_CONDUCT.md +0 -76
  84. data/CONTRIBUTING.md +0 -17
  85. data/Gemfile +0 -27
  86. data/Gemfile.lock +0 -206
  87. data/RESOLVING_VIOLATIONS.md +0 -76
  88. data/Rakefile +0 -22
  89. data/TROUBLESHOOT.md +0 -44
  90. data/UPGRADING.md +0 -66
  91. data/USAGE.md +0 -364
  92. data/bin/console +0 -15
  93. data/bin/m +0 -29
  94. data/bin/rake +0 -29
  95. data/bin/rubocop +0 -29
  96. data/bin/setup +0 -8
  97. data/bin/srb +0 -29
  98. data/bin/tapioca +0 -29
  99. data/dev.yml +0 -32
  100. data/docs/cohesion.png +0 -0
  101. data/gemfiles/Gemfile-rails-6-0 +0 -22
  102. data/gemfiles/Gemfile-rails-6-1 +0 -22
  103. data/packwerk.gemspec +0 -59
  104. data/shipit.rubygems.yml +0 -5
  105. data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +0 -2754
  106. data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +0 -1496
  107. data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +0 -2362
  108. data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +0 -1569
  109. data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +0 -2553
  110. data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +0 -5999
  111. data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +0 -37832
  112. data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +0 -2321
  113. data/sorbet/rbi/gems/better_html@1.0.16.rbi +0 -317
  114. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  115. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1079
  116. data/sorbet/rbi/gems/digest@3.1.0.rbi +0 -189
  117. data/sorbet/rbi/gems/globalid@1.0.0.rbi +0 -572
  118. data/sorbet/rbi/gems/mail@2.7.1.rbi +0 -2490
  119. data/sorbet/rbi/gems/marcel@1.0.2.rbi +0 -220
  120. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -76
  121. data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +0 -170
  122. data/sorbet/rbi/gems/net-imap@0.2.3.rbi +0 -2147
  123. data/sorbet/rbi/gems/net-pop@0.1.1.rbi +0 -926
  124. data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +0 -11
  125. data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +0 -1108
  126. data/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -292
  127. data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
  128. data/sorbet/rbi/gems/rails@7.0.3.1.rbi +0 -8
  129. data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -2181
  130. data/sorbet/rbi/gems/strscan@3.0.4.rbi +0 -8
  131. data/sorbet/rbi/gems/timeout@0.3.0.rbi +0 -142
  132. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
  133. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2582
  134. data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +0 -993
  135. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -71
@@ -4,7 +4,31 @@
4
4
  # This is an autogenerated file for types exported from the `thor` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem thor`.
6
6
 
7
- # source://thor-1.2.1/lib/thor/command.rb:1
7
+ # source://thor//lib/thor/shell/lcs_diff.rb#1
8
+ module LCSDiff
9
+ protected
10
+
11
+ # Overwrite show_diff to show diff with colors if Diff::LCS is
12
+ # available.
13
+ #
14
+ # source://thor//lib/thor/shell/lcs_diff.rb#6
15
+ def show_diff(destination, content); end
16
+
17
+ private
18
+
19
+ # Check if Diff::LCS is loaded. If it is, use it to create pretty output
20
+ # for diff.
21
+ #
22
+ # @return [Boolean]
23
+ #
24
+ # source://thor//lib/thor/shell/lcs_diff.rb#37
25
+ def diff_lcs_loaded?; end
26
+
27
+ # source://thor//lib/thor/shell/lcs_diff.rb#21
28
+ def output_diff_line(diff); end
29
+ end
30
+
31
+ # source://thor//lib/thor/command.rb#1
8
32
  class Thor
9
33
  include ::Thor::Base
10
34
  include ::Thor::Invocation
@@ -12,23 +36,63 @@ class Thor
12
36
  extend ::Thor::Base::ClassMethods
13
37
  extend ::Thor::Invocation::ClassMethods
14
38
 
15
- # source://thor-1.2.1/lib/thor.rb:505
39
+ # source://thor//lib/thor.rb#652
16
40
  def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
17
41
 
18
42
  class << self
43
+ # Adds and declares option group for required at least one of options in the
44
+ # block of arguments. You can declare options as the outside of the block.
45
+ #
46
+ # If :for is given as option, it allows you to change the options from
47
+ # a previous defined command.
48
+ #
49
+ # ==== Parameters
50
+ # Array[Thor::Option.name]
51
+ # options<Hash>:: :for is applied for previous defined command.
52
+ #
53
+ # ==== Examples
54
+ #
55
+ # at_least_one do
56
+ # option :one
57
+ # option :two
58
+ # end
59
+ #
60
+ # Or
61
+ #
62
+ # option :one
63
+ # option :two
64
+ # at_least_one :one, :two
65
+ #
66
+ # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError
67
+ # will be raised.
68
+ #
69
+ # You can use at_least_one and exclusive at the same time.
70
+ #
71
+ # exclusive do
72
+ # at_least_one do
73
+ # option :one
74
+ # option :two
75
+ # end
76
+ # end
77
+ #
78
+ # Then it is required either only one of "--one" or "--two".
79
+ #
80
+ # source://thor//lib/thor.rb#246
81
+ def at_least_one(*args, &block); end
82
+
19
83
  # Extend check unknown options to accept a hash of conditions.
20
84
  #
21
85
  # === Parameters
22
86
  # options<Hash>: A hash containing :only and/or :except keys
23
87
  #
24
- # source://thor-1.2.1/lib/thor.rb:255
88
+ # source://thor//lib/thor.rb#350
25
89
  def check_unknown_options!(options = T.unsafe(nil)); end
26
90
 
27
91
  # Overwrite check_unknown_options? to take subcommands and options into account.
28
92
  #
29
93
  # @return [Boolean]
30
94
  #
31
- # source://thor-1.2.1/lib/thor.rb:268
95
+ # source://thor//lib/thor.rb#363
32
96
  def check_unknown_options?(config); end
33
97
 
34
98
  # Prints help information for the given command.
@@ -37,7 +101,7 @@ class Thor
37
101
  # shell<Thor::Shell>
38
102
  # command_name<String>
39
103
  #
40
- # source://thor-1.2.1/lib/thor.rb:172
104
+ # source://thor//lib/thor.rb#258
41
105
  def command_help(shell, command_name); end
42
106
 
43
107
  # Sets the default command when thor is executed without an explicit command to be called.
@@ -45,7 +109,7 @@ class Thor
45
109
  # ==== Parameters
46
110
  # meth<Symbol>:: name of the default command
47
111
  #
48
- # source://thor-1.2.1/lib/thor.rb:21
112
+ # source://thor//lib/thor.rb#21
49
113
  def default_command(meth = T.unsafe(nil)); end
50
114
 
51
115
  # Sets the default command when thor is executed without an explicit command to be called.
@@ -53,10 +117,10 @@ class Thor
53
117
  # ==== Parameters
54
118
  # meth<Symbol>:: name of the default command
55
119
  #
56
- # source://thor-1.2.1/lib/thor.rb:21
120
+ # source://thor//lib/thor.rb#21
57
121
  def default_task(meth = T.unsafe(nil)); end
58
122
 
59
- # source://thor-1.2.1/lib/thor/base.rb:26
123
+ # source://thor//lib/thor/base.rb#26
60
124
  def deprecation_warning(message); end
61
125
 
62
126
  # Defines the usage and the description of the next command.
@@ -66,7 +130,7 @@ class Thor
66
130
  # description<String>
67
131
  # options<String>
68
132
  #
69
- # source://thor-1.2.1/lib/thor.rb:54
133
+ # source://thor//lib/thor.rb#54
70
134
  def desc(usage, description, options = T.unsafe(nil)); end
71
135
 
72
136
  # Disable the check for required options for the given commands.
@@ -76,28 +140,64 @@ class Thor
76
140
  # ==== Parameters
77
141
  # Symbol ...:: A list of commands that should be affected.
78
142
  #
79
- # source://thor-1.2.1/lib/thor.rb:339
143
+ # source://thor//lib/thor.rb#434
80
144
  def disable_required_check!(*command_names); end
81
145
 
82
146
  # @return [Boolean]
83
147
  #
84
- # source://thor-1.2.1/lib/thor.rb:343
148
+ # source://thor//lib/thor.rb#438
85
149
  def disable_required_check?(command); end
86
150
 
151
+ # Adds and declares option group for exclusive options in the
152
+ # block and arguments. You can declare options as the outside of the block.
153
+ #
154
+ # If :for is given as option, it allows you to change the options from
155
+ # a previous defined command.
156
+ #
157
+ # ==== Parameters
158
+ # Array[Thor::Option.name]
159
+ # options<Hash>:: :for is applied for previous defined command.
160
+ #
161
+ # ==== Examples
162
+ #
163
+ # exclusive do
164
+ # option :one
165
+ # option :two
166
+ # end
167
+ #
168
+ # Or
169
+ #
170
+ # option :one
171
+ # option :two
172
+ # exclusive :one, :two
173
+ #
174
+ # If you give "--one" and "--two" at the same time ExclusiveArgumentsError
175
+ # will be raised.
176
+ #
177
+ # source://thor//lib/thor.rb#203
178
+ def exclusive(*args, &block); end
179
+
87
180
  # Prints help information for this class.
88
181
  #
89
182
  # ==== Parameters
90
183
  # shell<Thor::Shell>
91
184
  #
92
- # source://thor-1.2.1/lib/thor.rb:195
185
+ # source://thor//lib/thor.rb#288
93
186
  def help(shell, subcommand = T.unsafe(nil)); end
94
187
 
95
188
  # Defines the long description of the next command.
96
189
  #
190
+ # Long description is by default indented, line-wrapped and repeated whitespace merged.
191
+ # In order to print long description verbatim, with indentation and spacing exactly
192
+ # as found in the code, use the +wrap+ option
193
+ #
194
+ # long_desc 'your very long description', wrap: false
195
+ #
97
196
  # ==== Parameters
98
197
  # long description<String>
198
+ # options<Hash>
99
199
  #
100
- # source://thor-1.2.1/lib/thor.rb:71
200
+ # source://thor//lib/thor.rb#78
101
201
  def long_desc(long_description, options = T.unsafe(nil)); end
102
202
 
103
203
  # Maps an input to a command. If you define:
@@ -113,9 +213,78 @@ class Thor
113
213
  # ==== Parameters
114
214
  # Hash[String|Array => Symbol]:: Maps the string or the strings in the array to the given command.
115
215
  #
116
- # source://thor-1.2.1/lib/thor.rb:93
216
+ # source://thor//lib/thor.rb#101
117
217
  def map(mappings = T.unsafe(nil), **kw); end
118
218
 
219
+ # Adds and declares option group for required at least one of options in the
220
+ # block of arguments. You can declare options as the outside of the block.
221
+ #
222
+ # If :for is given as option, it allows you to change the options from
223
+ # a previous defined command.
224
+ #
225
+ # ==== Parameters
226
+ # Array[Thor::Option.name]
227
+ # options<Hash>:: :for is applied for previous defined command.
228
+ #
229
+ # ==== Examples
230
+ #
231
+ # at_least_one do
232
+ # option :one
233
+ # option :two
234
+ # end
235
+ #
236
+ # Or
237
+ #
238
+ # option :one
239
+ # option :two
240
+ # at_least_one :one, :two
241
+ #
242
+ # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError
243
+ # will be raised.
244
+ #
245
+ # You can use at_least_one and exclusive at the same time.
246
+ #
247
+ # exclusive do
248
+ # at_least_one do
249
+ # option :one
250
+ # option :two
251
+ # end
252
+ # end
253
+ #
254
+ # Then it is required either only one of "--one" or "--two".
255
+ #
256
+ # source://thor//lib/thor.rb#246
257
+ def method_at_least_one(*args, &block); end
258
+
259
+ # Adds and declares option group for exclusive options in the
260
+ # block and arguments. You can declare options as the outside of the block.
261
+ #
262
+ # If :for is given as option, it allows you to change the options from
263
+ # a previous defined command.
264
+ #
265
+ # ==== Parameters
266
+ # Array[Thor::Option.name]
267
+ # options<Hash>:: :for is applied for previous defined command.
268
+ #
269
+ # ==== Examples
270
+ #
271
+ # exclusive do
272
+ # option :one
273
+ # option :two
274
+ # end
275
+ #
276
+ # Or
277
+ #
278
+ # option :one
279
+ # option :two
280
+ # exclusive :one, :two
281
+ #
282
+ # If you give "--one" and "--two" at the same time ExclusiveArgumentsError
283
+ # will be raised.
284
+ #
285
+ # source://thor//lib/thor.rb#203
286
+ def method_exclusive(*args, &block); end
287
+
119
288
  # Adds an option to the set of method options. If :for is given as option,
120
289
  # it allows you to change the options from a previous defined command.
121
290
  #
@@ -123,7 +292,7 @@ class Thor
123
292
  # # magic
124
293
  # end
125
294
  #
126
- # method_option :foo => :bar, :for => :previous_command
295
+ # method_option :foo, :for => :previous_command
127
296
  #
128
297
  # def next_command
129
298
  # # magic
@@ -142,7 +311,7 @@ class Thor
142
311
  # :banner - String to show on usage notes.
143
312
  # :hide - If you want to hide this option from the help.
144
313
  #
145
- # source://thor-1.2.1/lib/thor.rb:155
314
+ # source://thor//lib/thor.rb#163
146
315
  def method_option(name, options = T.unsafe(nil)); end
147
316
 
148
317
  # Declares the options for the next command to be declared.
@@ -152,7 +321,7 @@ class Thor
152
321
  # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric
153
322
  # or :required (string). If you give a value, the type of the value is used.
154
323
  #
155
- # source://thor-1.2.1/lib/thor.rb:121
324
+ # source://thor//lib/thor.rb#129
156
325
  def method_options(options = T.unsafe(nil)); end
157
326
 
158
327
  # Adds an option to the set of method options. If :for is given as option,
@@ -162,7 +331,7 @@ class Thor
162
331
  # # magic
163
332
  # end
164
333
  #
165
- # method_option :foo => :bar, :for => :previous_command
334
+ # method_option :foo, :for => :previous_command
166
335
  #
167
336
  # def next_command
168
337
  # # magic
@@ -181,7 +350,7 @@ class Thor
181
350
  # :banner - String to show on usage notes.
182
351
  # :hide - If you want to hide this option from the help.
183
352
  #
184
- # source://thor-1.2.1/lib/thor.rb:155
353
+ # source://thor//lib/thor.rb#163
185
354
  def option(name, options = T.unsafe(nil)); end
186
355
 
187
356
  # Declares the options for the next command to be declared.
@@ -191,7 +360,7 @@ class Thor
191
360
  # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric
192
361
  # or :required (string). If you give a value, the type of the value is used.
193
362
  #
194
- # source://thor-1.2.1/lib/thor.rb:121
363
+ # source://thor//lib/thor.rb#129
195
364
  def options(options = T.unsafe(nil)); end
196
365
 
197
366
  # Allows for custom "Command" package naming.
@@ -200,17 +369,17 @@ class Thor
200
369
  # name<String>
201
370
  # options<Hash>
202
371
  #
203
- # source://thor-1.2.1/lib/thor.rb:12
372
+ # source://thor//lib/thor.rb#12
204
373
  def package_name(name, _ = T.unsafe(nil)); end
205
374
 
206
375
  # Returns commands ready to be printed.
207
376
  #
208
- # source://thor-1.2.1/lib/thor.rb:214
377
+ # source://thor//lib/thor.rb#309
209
378
  def printable_commands(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end
210
379
 
211
380
  # Returns commands ready to be printed.
212
381
  #
213
- # source://thor-1.2.1/lib/thor.rb:214
382
+ # source://thor//lib/thor.rb#309
214
383
  def printable_tasks(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end
215
384
 
216
385
  # Registers another Thor subclass as a command.
@@ -221,7 +390,7 @@ class Thor
221
390
  # usage<String>:: Short usage for the subcommand
222
391
  # description<String>:: Description for the subcommand
223
392
  #
224
- # source://thor-1.2.1/lib/thor.rb:37
393
+ # source://thor//lib/thor.rb#37
225
394
  def register(klass, subcommand_name, usage, description, options = T.unsafe(nil)); end
226
395
 
227
396
  # Stop parsing of options as soon as an unknown option or a regular
@@ -262,27 +431,27 @@ class Thor
262
431
  # ==== Parameters
263
432
  # Symbol ...:: A list of commands that should be affected.
264
433
  #
265
- # source://thor-1.2.1/lib/thor.rb:325
434
+ # source://thor//lib/thor.rb#420
266
435
  def stop_on_unknown_option!(*command_names); end
267
436
 
268
437
  # @return [Boolean]
269
438
  #
270
- # source://thor-1.2.1/lib/thor.rb:329
439
+ # source://thor//lib/thor.rb#424
271
440
  def stop_on_unknown_option?(command); end
272
441
 
273
- # source://thor-1.2.1/lib/thor.rb:234
442
+ # source://thor//lib/thor.rb#329
274
443
  def subcommand(subcommand, subcommand_class); end
275
444
 
276
- # source://thor-1.2.1/lib/thor.rb:230
445
+ # source://thor//lib/thor.rb#325
277
446
  def subcommand_classes; end
278
447
 
279
- # source://thor-1.2.1/lib/thor.rb:225
448
+ # source://thor//lib/thor.rb#320
280
449
  def subcommands; end
281
450
 
282
- # source://thor-1.2.1/lib/thor.rb:234
451
+ # source://thor//lib/thor.rb#329
283
452
  def subtask(subcommand, subcommand_class); end
284
453
 
285
- # source://thor-1.2.1/lib/thor.rb:225
454
+ # source://thor//lib/thor.rb#320
286
455
  def subtasks; end
287
456
 
288
457
  # Prints help information for the given command.
@@ -291,7 +460,7 @@ class Thor
291
460
  # shell<Thor::Shell>
292
461
  # command_name<String>
293
462
  #
294
- # source://thor-1.2.1/lib/thor.rb:172
463
+ # source://thor//lib/thor.rb#258
295
464
  def task_help(shell, command_name); end
296
465
 
297
466
  protected
@@ -301,50 +470,66 @@ class Thor
301
470
  # the command that is going to be invoked and a boolean which indicates if
302
471
  # the namespace should be displayed as arguments.
303
472
  #
304
- # source://thor-1.2.1/lib/thor.rb:400
473
+ # source://thor//lib/thor.rb#535
305
474
  def banner(command, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end
306
475
 
307
- # source://thor-1.2.1/lib/thor.rb:406
476
+ # source://thor//lib/thor.rb#541
308
477
  def baseclass; end
309
478
 
310
- # source://thor-1.2.1/lib/thor.rb:414
479
+ # source://thor//lib/thor.rb#549
311
480
  def create_command(meth); end
312
481
 
313
- # source://thor-1.2.1/lib/thor.rb:414
482
+ # source://thor//lib/thor.rb#549
314
483
  def create_task(meth); end
315
484
 
316
485
  # help command has the required check disabled by default.
317
486
  #
318
- # source://thor-1.2.1/lib/thor.rb:354
487
+ # source://thor//lib/thor.rb#467
319
488
  def disable_required_check; end
320
489
 
321
490
  # The method responsible for dispatching given the args.
322
491
  #
323
492
  # @yield [instance]
324
493
  #
325
- # source://thor-1.2.1/lib/thor.rb:359
494
+ # source://thor//lib/thor.rb#494
326
495
  def dispatch(meth, given_args, given_opts, config); end
327
496
 
328
- # source://thor-1.2.1/lib/thor.rb:410
497
+ # source://thor//lib/thor.rb#545
329
498
  def dynamic_command_class; end
330
499
 
331
500
  # this is the logic that takes the command name passed in by the user
332
501
  # and determines whether it is an unambiguous substrings of a command or
333
502
  # alias name.
334
503
  #
335
- # source://thor-1.2.1/lib/thor.rb:476
504
+ # source://thor//lib/thor.rb#615
336
505
  def find_command_possibilities(meth); end
337
506
 
338
507
  # this is the logic that takes the command name passed in by the user
339
508
  # and determines whether it is an unambiguous substrings of a command or
340
509
  # alias name.
341
510
  #
342
- # source://thor-1.2.1/lib/thor.rb:476
511
+ # source://thor//lib/thor.rb#615
343
512
  def find_task_possibilities(meth); end
344
513
 
345
- # source://thor-1.2.1/lib/thor.rb:436
514
+ # source://thor//lib/thor.rb#575
346
515
  def initialize_added; end
347
516
 
517
+ # Returns this class at least one of required options array set.
518
+ #
519
+ # ==== Returns
520
+ # Array[Array[Thor::Option.name]]
521
+ #
522
+ # source://thor//lib/thor.rb#458
523
+ def method_at_least_one_option_names; end
524
+
525
+ # Returns this class exclusive options array set.
526
+ #
527
+ # ==== Returns
528
+ # Array[Array[Thor::Option.name]]
529
+ #
530
+ # source://thor//lib/thor.rb#449
531
+ def method_exclusive_option_names; end
532
+
348
533
  # receives a (possibly nil) command name and returns a name that is in
349
534
  # the commands hash. In addition to normalizing aliases, this logic
350
535
  # will determine if a shortened command is an unambiguous substring of
@@ -355,7 +540,7 @@ class Thor
355
540
  #
356
541
  # @raise [AmbiguousTaskError]
357
542
  #
358
- # source://thor-1.2.1/lib/thor.rb:455
543
+ # source://thor//lib/thor.rb#594
359
544
  def normalize_command_name(meth); end
360
545
 
361
546
  # receives a (possibly nil) command name and returns a name that is in
@@ -368,31 +553,45 @@ class Thor
368
553
  #
369
554
  # @raise [AmbiguousTaskError]
370
555
  #
371
- # source://thor-1.2.1/lib/thor.rb:455
556
+ # source://thor//lib/thor.rb#594
372
557
  def normalize_task_name(meth); end
373
558
 
559
+ # source://thor//lib/thor.rb#482
560
+ def print_at_least_one_required_options(shell, command = T.unsafe(nil)); end
561
+
562
+ # source://thor//lib/thor.rb#471
563
+ def print_exclusive_options(shell, command = T.unsafe(nil)); end
564
+
374
565
  # Retrieve the command name from given args.
375
566
  #
376
- # source://thor-1.2.1/lib/thor.rb:442
567
+ # source://thor//lib/thor.rb#581
377
568
  def retrieve_command_name(args); end
378
569
 
379
570
  # Retrieve the command name from given args.
380
571
  #
381
- # source://thor-1.2.1/lib/thor.rb:442
572
+ # source://thor//lib/thor.rb#581
382
573
  def retrieve_task_name(args); end
383
574
 
384
- # source://thor-1.2.1/lib/thor.rb:349
575
+ # Sort the commands, lexicographically by default.
576
+ #
577
+ # Can be overridden in the subclass to change the display order of the
578
+ # commands.
579
+ #
580
+ # source://thor//lib/thor.rb#642
581
+ def sort_commands!(list); end
582
+
583
+ # source://thor//lib/thor.rb#462
385
584
  def stop_on_unknown_option; end
386
585
 
387
- # source://thor-1.2.1/lib/thor.rb:491
586
+ # source://thor//lib/thor.rb#630
388
587
  def subcommand_help(cmd); end
389
588
 
390
- # source://thor-1.2.1/lib/thor.rb:491
589
+ # source://thor//lib/thor.rb#630
391
590
  def subtask_help(cmd); end
392
591
  end
393
592
  end
394
593
 
395
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:2
594
+ # source://thor//lib/thor/actions/empty_directory.rb#2
396
595
  module Thor::Actions
397
596
  mixes_in_class_methods ::Thor::Actions::ClassMethods
398
597
 
@@ -405,12 +604,12 @@ module Thor::Actions
405
604
  #
406
605
  # destination_root<String>:: The root directory needed for some actions.
407
606
  #
408
- # source://thor-1.2.1/lib/thor/actions.rb:72
607
+ # source://thor//lib/thor/actions.rb#72
409
608
  def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end
410
609
 
411
610
  # Wraps an action object and call it accordingly to the thor class behavior.
412
611
  #
413
- # source://thor-1.2.1/lib/thor/actions.rb:89
612
+ # source://thor//lib/thor/actions.rb#89
414
613
  def action(instance); end
415
614
 
416
615
  # Create a new file relative to the destination root with the given data,
@@ -430,7 +629,7 @@ module Thor::Actions
430
629
  #
431
630
  # create_file "config/apache.conf", "your apache config"
432
631
  #
433
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:22
632
+ # source://thor//lib/thor/actions/create_file.rb#22
434
633
  def add_file(destination, *args, &block); end
435
634
 
436
635
  # Create a new file relative to the destination root from the given source.
@@ -445,7 +644,7 @@ module Thor::Actions
445
644
  #
446
645
  # create_link "config/apache.conf", "/etc/apache.conf"
447
646
  #
448
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:17
647
+ # source://thor//lib/thor/actions/create_link.rb#17
449
648
  def add_link(destination, *args); end
450
649
 
451
650
  # Append text to a file. Since it depends on insert_into_file, it's reversible.
@@ -463,7 +662,7 @@ module Thor::Actions
463
662
  # 'config.gem "rspec"'
464
663
  # end
465
664
  #
466
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:195
665
+ # source://thor//lib/thor/actions/file_manipulation.rb#192
467
666
  def append_file(path, *args, &block); end
468
667
 
469
668
  # Append text to a file. Since it depends on insert_into_file, it's reversible.
@@ -481,7 +680,7 @@ module Thor::Actions
481
680
  # 'config.gem "rspec"'
482
681
  # end
483
682
  #
484
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:195
683
+ # source://thor//lib/thor/actions/file_manipulation.rb#192
485
684
  def append_to_file(path, *args, &block); end
486
685
 
487
686
  # Loads an external file and execute it in the instance binding.
@@ -496,19 +695,19 @@ module Thor::Actions
496
695
  #
497
696
  # apply "recipes/jquery.rb"
498
697
  #
499
- # source://thor-1.2.1/lib/thor/actions.rb:216
698
+ # source://thor//lib/thor/actions.rb#216
500
699
  def apply(path, config = T.unsafe(nil)); end
501
700
 
502
701
  # Returns the value of attribute behavior.
503
702
  #
504
- # source://thor-1.2.1/lib/thor/actions.rb:10
703
+ # source://thor//lib/thor/actions.rb#10
505
704
  def behavior; end
506
705
 
507
706
  # Sets the attribute behavior
508
707
  #
509
708
  # @param value the value to set the attribute behavior to.
510
709
  #
511
- # source://thor-1.2.1/lib/thor/actions.rb:10
710
+ # source://thor//lib/thor/actions.rb#10
512
711
  def behavior=(_arg0); end
513
712
 
514
713
  # Changes the mode of the given file or directory.
@@ -522,7 +721,7 @@ module Thor::Actions
522
721
  #
523
722
  # chmod "script/server", 0755
524
723
  #
525
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:148
724
+ # source://thor//lib/thor/actions/file_manipulation.rb#145
526
725
  def chmod(path, mode, config = T.unsafe(nil)); end
527
726
 
528
727
  # Comment all lines matching a given regex. It will leave the space
@@ -538,16 +737,25 @@ module Thor::Actions
538
737
  #
539
738
  # comment_lines 'config/initializers/session_store.rb', /cookie_store/
540
739
  #
541
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:312
740
+ # source://thor//lib/thor/actions/file_manipulation.rb#308
542
741
  def comment_lines(path, flag, *args); end
543
742
 
743
+ # Copies the file from the relative source to the relative destination. If
744
+ # the destination is not given it's assumed to be equal to the source.
745
+ #
746
+ # ==== Parameters
747
+ # source<String>:: the relative path to the source root.
748
+ # destination<String>:: the relative path to the destination root.
749
+ # config<Hash>:: give :verbose => false to not log the status, and
750
+ # :mode => :preserve, to preserve the file mode from the source.
751
+ #
544
752
  # ==== Examples
545
753
  #
546
754
  # copy_file "README", "doc/README"
547
755
  #
548
756
  # copy_file "doc/README"
549
757
  #
550
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:21
758
+ # source://thor//lib/thor/actions/file_manipulation.rb#20
551
759
  def copy_file(source, *args, &block); end
552
760
 
553
761
  # Create a new file relative to the destination root with the given data,
@@ -567,7 +775,7 @@ module Thor::Actions
567
775
  #
568
776
  # create_file "config/apache.conf", "your apache config"
569
777
  #
570
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:22
778
+ # source://thor//lib/thor/actions/create_file.rb#22
571
779
  def create_file(destination, *args, &block); end
572
780
 
573
781
  # Create a new file relative to the destination root from the given source.
@@ -582,18 +790,18 @@ module Thor::Actions
582
790
  #
583
791
  # create_link "config/apache.conf", "/etc/apache.conf"
584
792
  #
585
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:17
793
+ # source://thor//lib/thor/actions/create_link.rb#17
586
794
  def create_link(destination, *args); end
587
795
 
588
796
  # Returns the root for this thor class (also aliased as destination root).
589
797
  #
590
- # source://thor-1.2.1/lib/thor/actions.rb:99
798
+ # source://thor//lib/thor/actions.rb#99
591
799
  def destination_root; end
592
800
 
593
801
  # Sets the root for this thor class. Relatives path are added to the
594
802
  # directory where the script was invoked and expanded.
595
803
  #
596
- # source://thor-1.2.1/lib/thor/actions.rb:106
804
+ # source://thor//lib/thor/actions.rb#106
597
805
  def destination_root=(root); end
598
806
 
599
807
  # Copies recursively the files from source directory to root directory.
@@ -640,7 +848,7 @@ module Thor::Actions
640
848
  # directory "doc"
641
849
  # directory "doc", "docs", :recursive => false
642
850
  #
643
- # source://thor-1.2.1/lib/thor/actions/directory.rb:49
851
+ # source://thor//lib/thor/actions/directory.rb#49
644
852
  def directory(source, *args, &block); end
645
853
 
646
854
  # Creates an empty directory.
@@ -653,14 +861,14 @@ module Thor::Actions
653
861
  #
654
862
  # empty_directory "doc"
655
863
  #
656
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:13
864
+ # source://thor//lib/thor/actions/empty_directory.rb#13
657
865
  def empty_directory(destination, config = T.unsafe(nil)); end
658
866
 
659
867
  # Receives a file or directory and search for it in the source paths.
660
868
  #
661
869
  # @raise [Error]
662
870
  #
663
- # source://thor-1.2.1/lib/thor/actions.rb:133
871
+ # source://thor//lib/thor/actions.rb#133
664
872
  def find_in_source_paths(file); end
665
873
 
666
874
  # Gets the content at the given address and places it at the given relative
@@ -673,17 +881,20 @@ module Thor::Actions
673
881
  # ==== Parameters
674
882
  # source<String>:: the address of the given content.
675
883
  # destination<String>:: the relative path to the destination root.
676
- # config<Hash>:: give :verbose => false to not log the status.
884
+ # config<Hash>:: give :verbose => false to not log the status, and
885
+ # :http_headers => <Hash> to add headers to an http request.
677
886
  #
678
887
  # ==== Examples
679
888
  #
680
889
  # get "http://gist.github.com/103208", "doc/README"
681
890
  #
891
+ # get "http://gist.github.com/103208", "doc/README", :http_headers => {"Content-Type" => "application/json"}
892
+ #
682
893
  # get "http://gist.github.com/103208" do |content|
683
894
  # content.split("\n").first
684
895
  # end
685
896
  #
686
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:79
897
+ # source://thor//lib/thor/actions/file_manipulation.rb#81
687
898
  def get(source, *args, &block); end
688
899
 
689
900
  # Run a regular expression replacement on a file.
@@ -693,7 +904,7 @@ module Thor::Actions
693
904
  # flag<Regexp|String>:: the regexp or string to be replaced
694
905
  # replacement<String>:: the replacement, can be also given as a block
695
906
  # config<Hash>:: give :verbose => false to not log the status, and
696
- # :force => true, to force the replacement regardles of runner behavior.
907
+ # :force => true, to force the replacement regardless of runner behavior.
697
908
  #
698
909
  # ==== Example
699
910
  #
@@ -703,12 +914,12 @@ module Thor::Actions
703
914
  # match << " no more. Use thor!"
704
915
  # end
705
916
  #
706
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:265
917
+ # source://thor//lib/thor/actions/file_manipulation.rb#262
707
918
  def gsub_file(path, flag, *args, &block); end
708
919
 
709
920
  # Goes to the root and execute the given block.
710
921
  #
711
- # source://thor-1.2.1/lib/thor/actions.rb:200
922
+ # source://thor//lib/thor/actions.rb#200
712
923
  def in_root; end
713
924
 
714
925
  # Injects text right after the class definition. Since it depends on
@@ -728,10 +939,10 @@ module Thor::Actions
728
939
  # " filter_parameter :password\n"
729
940
  # end
730
941
  #
731
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:219
942
+ # source://thor//lib/thor/actions/file_manipulation.rb#216
732
943
  def inject_into_class(path, klass, *args, &block); end
733
944
 
734
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:26
945
+ # source://thor//lib/thor/actions/inject_into_file.rb#26
735
946
  def inject_into_file(destination, *args, &block); end
736
947
 
737
948
  # Injects text right after the module definition. Since it depends on
@@ -751,10 +962,10 @@ module Thor::Actions
751
962
  # " def help; 'help'; end\n"
752
963
  # end
753
964
  #
754
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:242
965
+ # source://thor//lib/thor/actions/file_manipulation.rb#239
755
966
  def inject_into_module(path, module_name, *args, &block); end
756
967
 
757
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:26
968
+ # source://thor//lib/thor/actions/inject_into_file.rb#26
758
969
  def insert_into_file(destination, *args, &block); end
759
970
 
760
971
  # Do something in the root or on a provided subfolder. If a relative path
@@ -768,7 +979,7 @@ module Thor::Actions
768
979
  # dir<String>:: the directory to move to.
769
980
  # config<Hash>:: give :verbose => true to log and use padding.
770
981
  #
771
- # source://thor-1.2.1/lib/thor/actions.rb:170
982
+ # source://thor//lib/thor/actions.rb#170
772
983
  def inside(dir = T.unsafe(nil), config = T.unsafe(nil), &block); end
773
984
 
774
985
  # Links the file from the relative source to the relative destination. If
@@ -785,7 +996,7 @@ module Thor::Actions
785
996
  #
786
997
  # link_file "doc/README"
787
998
  #
788
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:51
999
+ # source://thor//lib/thor/actions/file_manipulation.rb#50
789
1000
  def link_file(source, *args); end
790
1001
 
791
1002
  # Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -803,7 +1014,7 @@ module Thor::Actions
803
1014
  # 'config.gem "rspec"'
804
1015
  # end
805
1016
  #
806
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:173
1017
+ # source://thor//lib/thor/actions/file_manipulation.rb#170
807
1018
  def prepend_file(path, *args, &block); end
808
1019
 
809
1020
  # Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -821,13 +1032,13 @@ module Thor::Actions
821
1032
  # 'config.gem "rspec"'
822
1033
  # end
823
1034
  #
824
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:173
1035
+ # source://thor//lib/thor/actions/file_manipulation.rb#170
825
1036
  def prepend_to_file(path, *args, &block); end
826
1037
 
827
1038
  # Returns the given path relative to the absolute root (ie, root where
828
1039
  # the script started).
829
1040
  #
830
- # source://thor-1.2.1/lib/thor/actions.rb:114
1041
+ # source://thor//lib/thor/actions.rb#114
831
1042
  def relative_to_original_destination_root(path, remove_dot = T.unsafe(nil)); end
832
1043
 
833
1044
  # Removes a file at the given location.
@@ -841,7 +1052,7 @@ module Thor::Actions
841
1052
  # remove_file 'README'
842
1053
  # remove_file 'app/controllers/application_controller.rb'
843
1054
  #
844
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:329
1055
+ # source://thor//lib/thor/actions/file_manipulation.rb#325
845
1056
  def remove_dir(path, config = T.unsafe(nil)); end
846
1057
 
847
1058
  # Removes a file at the given location.
@@ -855,7 +1066,7 @@ module Thor::Actions
855
1066
  # remove_file 'README'
856
1067
  # remove_file 'app/controllers/application_controller.rb'
857
1068
  #
858
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:329
1069
+ # source://thor//lib/thor/actions/file_manipulation.rb#325
859
1070
  def remove_file(path, config = T.unsafe(nil)); end
860
1071
 
861
1072
  # Executes a command returning the contents of the command.
@@ -871,7 +1082,7 @@ module Thor::Actions
871
1082
  # run('ln -s ~/edge rails')
872
1083
  # end
873
1084
  #
874
- # source://thor-1.2.1/lib/thor/actions.rb:248
1085
+ # source://thor//lib/thor/actions.rb#248
875
1086
  def run(command, config = T.unsafe(nil)); end
876
1087
 
877
1088
  # Executes a ruby script (taking into account WIN32 platform quirks).
@@ -880,12 +1091,12 @@ module Thor::Actions
880
1091
  # command<String>:: the command to be executed.
881
1092
  # config<Hash>:: give :verbose => false to not log the status.
882
1093
  #
883
- # source://thor-1.2.1/lib/thor/actions.rb:285
1094
+ # source://thor//lib/thor/actions.rb#285
884
1095
  def run_ruby_script(command, config = T.unsafe(nil)); end
885
1096
 
886
1097
  # Holds source paths in instance so they can be manipulated.
887
1098
  #
888
- # source://thor-1.2.1/lib/thor/actions.rb:127
1099
+ # source://thor//lib/thor/actions.rb#127
889
1100
  def source_paths; end
890
1101
 
891
1102
  # Gets an ERB template at the relative source, executes it and makes a copy
@@ -903,7 +1114,7 @@ module Thor::Actions
903
1114
  #
904
1115
  # template "doc/README"
905
1116
  #
906
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:115
1117
+ # source://thor//lib/thor/actions/file_manipulation.rb#117
907
1118
  def template(source, *args, &block); end
908
1119
 
909
1120
  # Run a thor command. A hash of options can be given and it's converted to
@@ -924,12 +1135,11 @@ module Thor::Actions
924
1135
  # thor :list, :all => true, :substring => 'rails'
925
1136
  # #=> thor list --all --substring=rails
926
1137
  #
927
- # source://thor-1.2.1/lib/thor/actions.rb:308
1138
+ # source://thor//lib/thor/actions.rb#308
928
1139
  def thor(command, *args); end
929
1140
 
930
- # Uncomment all lines matching a given regex. It will leave the space
931
- # which existed before the comment hash in tact but will remove any spacing
932
- # between the comment hash and the beginning of the line.
1141
+ # Uncomment all lines matching a given regex. Preserves indentation before
1142
+ # the comment hash and removes the hash and any immediate following space.
933
1143
  #
934
1144
  # ==== Parameters
935
1145
  # path<String>:: path of the file to be changed
@@ -940,44 +1150,44 @@ module Thor::Actions
940
1150
  #
941
1151
  # uncomment_lines 'config/initializers/session_store.rb', /active_record/
942
1152
  #
943
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:293
1153
+ # source://thor//lib/thor/actions/file_manipulation.rb#289
944
1154
  def uncomment_lines(path, flag, *args); end
945
1155
 
946
1156
  protected
947
1157
 
948
- # source://thor-1.2.1/lib/thor/actions.rb:329
1158
+ # source://thor//lib/thor/actions.rb#329
949
1159
  def _cleanup_options_and_set(options, key); end
950
1160
 
951
1161
  # Allow current root to be shared between invocations.
952
1162
  #
953
- # source://thor-1.2.1/lib/thor/actions.rb:325
1163
+ # source://thor//lib/thor/actions.rb#325
954
1164
  def _shared_configuration; end
955
1165
 
956
1166
  private
957
1167
 
958
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:350
1168
+ # source://thor//lib/thor/actions/file_manipulation.rb#346
959
1169
  def capture(*args); end
960
1170
 
961
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:346
1171
+ # source://thor//lib/thor/actions/file_manipulation.rb#342
962
1172
  def concat(string); end
963
1173
 
964
1174
  # Returns the value of attribute output_buffer.
965
1175
  #
966
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:341
1176
+ # source://thor//lib/thor/actions/file_manipulation.rb#337
967
1177
  def output_buffer; end
968
1178
 
969
1179
  # Sets the attribute output_buffer
970
1180
  #
971
1181
  # @param value the value to set the attribute output_buffer to.
972
1182
  #
973
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:341
1183
+ # source://thor//lib/thor/actions/file_manipulation.rb#337
974
1184
  def output_buffer=(_arg0); end
975
1185
 
976
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:354
1186
+ # source://thor//lib/thor/actions/file_manipulation.rb#350
977
1187
  def with_output_buffer(buf = T.unsafe(nil)); end
978
1188
 
979
1189
  class << self
980
- # source://thor-1.2.1/lib/thor/actions.rb:12
1190
+ # source://thor//lib/thor/actions.rb#12
981
1191
  def included(base); end
982
1192
  end
983
1193
  end
@@ -985,24 +1195,24 @@ end
985
1195
  # Thor::Actions#capture depends on what kind of buffer is used in ERB.
986
1196
  # Thus CapturableERB fixes ERB to use String buffer.
987
1197
  #
988
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:366
1198
+ # source://thor//lib/thor/actions/file_manipulation.rb#362
989
1199
  class Thor::Actions::CapturableERB < ::ERB
990
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:367
1200
+ # source://thor//lib/thor/actions/file_manipulation.rb#363
991
1201
  def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end
992
1202
  end
993
1203
 
994
- # source://thor-1.2.1/lib/thor/actions.rb:17
1204
+ # source://thor//lib/thor/actions.rb#17
995
1205
  module Thor::Actions::ClassMethods
996
1206
  # Add runtime options that help actions execution.
997
1207
  #
998
- # source://thor-1.2.1/lib/thor/actions.rb:48
1208
+ # source://thor//lib/thor/actions.rb#48
999
1209
  def add_runtime_options!; end
1000
1210
 
1001
1211
  # Hold source paths for one Thor instance. source_paths_for_search is the
1002
1212
  # method responsible to gather source_paths from this current class,
1003
1213
  # inherited paths and the source root.
1004
1214
  #
1005
- # source://thor-1.2.1/lib/thor/actions.rb:22
1215
+ # source://thor//lib/thor/actions.rb#22
1006
1216
  def source_paths; end
1007
1217
 
1008
1218
  # Returns the source paths in the following order:
@@ -1011,26 +1221,26 @@ module Thor::Actions::ClassMethods
1011
1221
  # 2) Source root
1012
1222
  # 3) Parents source paths
1013
1223
  #
1014
- # source://thor-1.2.1/lib/thor/actions.rb:38
1224
+ # source://thor//lib/thor/actions.rb#38
1015
1225
  def source_paths_for_search; end
1016
1226
 
1017
1227
  # Stores and return the source root for this class
1018
1228
  #
1019
- # source://thor-1.2.1/lib/thor/actions.rb:27
1229
+ # source://thor//lib/thor/actions.rb#27
1020
1230
  def source_root(path = T.unsafe(nil)); end
1021
1231
  end
1022
1232
 
1023
1233
  # CreateFile is a subset of Template, which instead of rendering a file with
1024
1234
  # ERB, it gets the content from the user.
1025
1235
  #
1026
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:32
1236
+ # source://thor//lib/thor/actions/create_file.rb#32
1027
1237
  class Thor::Actions::CreateFile < ::Thor::Actions::EmptyDirectory
1028
1238
  # @return [CreateFile] a new instance of CreateFile
1029
1239
  #
1030
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:35
1240
+ # source://thor//lib/thor/actions/create_file.rb#35
1031
1241
  def initialize(base, destination, data, config = T.unsafe(nil)); end
1032
1242
 
1033
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:33
1243
+ # source://thor//lib/thor/actions/create_file.rb#33
1034
1244
  def data; end
1035
1245
 
1036
1246
  # Checks if the content of the file at the destination is identical to the rendered result.
@@ -1040,15 +1250,15 @@ class Thor::Actions::CreateFile < ::Thor::Actions::EmptyDirectory
1040
1250
  #
1041
1251
  # @return [Boolean]
1042
1252
  #
1043
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:45
1253
+ # source://thor//lib/thor/actions/create_file.rb#45
1044
1254
  def identical?; end
1045
1255
 
1046
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:59
1256
+ # source://thor//lib/thor/actions/create_file.rb#60
1047
1257
  def invoke!; end
1048
1258
 
1049
1259
  # Holds the content to be added to the file.
1050
1260
  #
1051
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:51
1261
+ # source://thor//lib/thor/actions/create_file.rb#52
1052
1262
  def render; end
1053
1263
 
1054
1264
  protected
@@ -1057,33 +1267,33 @@ class Thor::Actions::CreateFile < ::Thor::Actions::EmptyDirectory
1057
1267
  #
1058
1268
  # @return [Boolean]
1059
1269
  #
1060
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:99
1270
+ # source://thor//lib/thor/actions/create_file.rb#100
1061
1271
  def force_on_collision?; end
1062
1272
 
1063
1273
  # If force is true, run the action, otherwise check if it's not being
1064
1274
  # skipped. If both are false, show the file_collision menu, if the menu
1065
1275
  # returns true, force it, otherwise skip.
1066
1276
  #
1067
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:85
1277
+ # source://thor//lib/thor/actions/create_file.rb#86
1068
1278
  def force_or_skip_or_conflict(force, skip, &block); end
1069
1279
 
1070
1280
  # Now on conflict we check if the file is identical or not.
1071
1281
  #
1072
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:72
1282
+ # source://thor//lib/thor/actions/create_file.rb#73
1073
1283
  def on_conflict_behavior(&block); end
1074
1284
  end
1075
1285
 
1076
1286
  # CreateLink is a subset of CreateFile, which instead of taking a block of
1077
1287
  # data, just takes a source string from the user.
1078
1288
  #
1079
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:27
1289
+ # source://thor//lib/thor/actions/create_link.rb#27
1080
1290
  class Thor::Actions::CreateLink < ::Thor::Actions::CreateFile
1081
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:28
1291
+ # source://thor//lib/thor/actions/create_link.rb#28
1082
1292
  def data; end
1083
1293
 
1084
1294
  # @return [Boolean]
1085
1295
  #
1086
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:56
1296
+ # source://thor//lib/thor/actions/create_link.rb#56
1087
1297
  def exists?; end
1088
1298
 
1089
1299
  # Checks if the content of the file at the destination is identical to the rendered result.
@@ -1093,44 +1303,44 @@ class Thor::Actions::CreateLink < ::Thor::Actions::CreateFile
1093
1303
  #
1094
1304
  # @return [Boolean]
1095
1305
  #
1096
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:35
1306
+ # source://thor//lib/thor/actions/create_link.rb#35
1097
1307
  def identical?; end
1098
1308
 
1099
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:40
1309
+ # source://thor//lib/thor/actions/create_link.rb#40
1100
1310
  def invoke!; end
1101
1311
  end
1102
1312
 
1103
- # source://thor-1.2.1/lib/thor/actions/directory.rb:55
1313
+ # source://thor//lib/thor/actions/directory.rb#55
1104
1314
  class Thor::Actions::Directory < ::Thor::Actions::EmptyDirectory
1105
1315
  # @return [Directory] a new instance of Directory
1106
1316
  #
1107
- # source://thor-1.2.1/lib/thor/actions/directory.rb:58
1317
+ # source://thor//lib/thor/actions/directory.rb#58
1108
1318
  def initialize(base, source, destination = T.unsafe(nil), config = T.unsafe(nil), &block); end
1109
1319
 
1110
- # source://thor-1.2.1/lib/thor/actions/directory.rb:64
1320
+ # source://thor//lib/thor/actions/directory.rb#64
1111
1321
  def invoke!; end
1112
1322
 
1113
- # source://thor-1.2.1/lib/thor/actions/directory.rb:69
1323
+ # source://thor//lib/thor/actions/directory.rb#69
1114
1324
  def revoke!; end
1115
1325
 
1116
1326
  # Returns the value of attribute source.
1117
1327
  #
1118
- # source://thor-1.2.1/lib/thor/actions/directory.rb:56
1328
+ # source://thor//lib/thor/actions/directory.rb#56
1119
1329
  def source; end
1120
1330
 
1121
1331
  protected
1122
1332
 
1123
- # source://thor-1.2.1/lib/thor/actions/directory.rb:75
1333
+ # source://thor//lib/thor/actions/directory.rb#75
1124
1334
  def execute!; end
1125
1335
 
1126
- # source://thor-1.2.1/lib/thor/actions/directory.rb:99
1336
+ # source://thor//lib/thor/actions/directory.rb#99
1127
1337
  def file_level_lookup(previous_lookup); end
1128
1338
 
1129
- # source://thor-1.2.1/lib/thor/actions/directory.rb:103
1339
+ # source://thor//lib/thor/actions/directory.rb#103
1130
1340
  def files(lookup); end
1131
1341
  end
1132
1342
 
1133
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:23
1343
+ # source://thor//lib/thor/actions/empty_directory.rb#23
1134
1344
  class Thor::Actions::EmptyDirectory
1135
1345
  # Initializes given the source and destination.
1136
1346
  #
@@ -1142,16 +1352,16 @@ class Thor::Actions::EmptyDirectory
1142
1352
  #
1143
1353
  # @return [EmptyDirectory] a new instance of EmptyDirectory
1144
1354
  #
1145
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:34
1355
+ # source://thor//lib/thor/actions/empty_directory.rb#34
1146
1356
  def initialize(base, destination, config = T.unsafe(nil)); end
1147
1357
 
1148
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1358
+ # source://thor//lib/thor/actions/empty_directory.rb#24
1149
1359
  def base; end
1150
1360
 
1151
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1361
+ # source://thor//lib/thor/actions/empty_directory.rb#24
1152
1362
  def config; end
1153
1363
 
1154
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1364
+ # source://thor//lib/thor/actions/empty_directory.rb#24
1155
1365
  def destination; end
1156
1366
 
1157
1367
  # Checks if the destination file already exists.
@@ -1161,19 +1371,19 @@ class Thor::Actions::EmptyDirectory
1161
1371
  #
1162
1372
  # @return [Boolean]
1163
1373
  #
1164
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:45
1374
+ # source://thor//lib/thor/actions/empty_directory.rb#45
1165
1375
  def exists?; end
1166
1376
 
1167
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1377
+ # source://thor//lib/thor/actions/empty_directory.rb#24
1168
1378
  def given_destination; end
1169
1379
 
1170
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:49
1380
+ # source://thor//lib/thor/actions/empty_directory.rb#49
1171
1381
  def invoke!; end
1172
1382
 
1173
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1383
+ # source://thor//lib/thor/actions/empty_directory.rb#24
1174
1384
  def relative_destination; end
1175
1385
 
1176
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:56
1386
+ # source://thor//lib/thor/actions/empty_directory.rb#56
1177
1387
  def revoke!; end
1178
1388
 
1179
1389
  protected
@@ -1189,7 +1399,7 @@ class Thor::Actions::EmptyDirectory
1189
1399
  #
1190
1400
  # The method referenced can be either public or private.
1191
1401
  #
1192
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:103
1402
+ # source://thor//lib/thor/actions/empty_directory.rb#103
1193
1403
  def convert_encoded_instructions(filename); end
1194
1404
 
1195
1405
  # Sets the absolute destination value from a relative destination value.
@@ -1206,72 +1416,80 @@ class Thor::Actions::EmptyDirectory
1206
1416
  # relative_destination #=> bar/baz
1207
1417
  # given_destination #=> baz
1208
1418
  #
1209
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:85
1419
+ # source://thor//lib/thor/actions/empty_directory.rb#85
1210
1420
  def destination=(destination); end
1211
1421
 
1212
1422
  # Receives a hash of options and just execute the block if some
1213
1423
  # conditions are met.
1214
1424
  #
1215
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:113
1425
+ # source://thor//lib/thor/actions/empty_directory.rb#113
1216
1426
  def invoke_with_conflict_check(&block); end
1217
1427
 
1218
1428
  # What to do when the destination file already exists.
1219
1429
  #
1220
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:132
1430
+ # source://thor//lib/thor/actions/empty_directory.rb#132
1221
1431
  def on_conflict_behavior; end
1222
1432
 
1223
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:126
1433
+ # source://thor//lib/thor/actions/empty_directory.rb#126
1224
1434
  def on_file_clash_behavior; end
1225
1435
 
1226
1436
  # Shortcut for pretend.
1227
1437
  #
1228
1438
  # @return [Boolean]
1229
1439
  #
1230
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:67
1440
+ # source://thor//lib/thor/actions/empty_directory.rb#67
1231
1441
  def pretend?; end
1232
1442
 
1233
1443
  # Shortcut to say_status shell method.
1234
1444
  #
1235
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:138
1445
+ # source://thor//lib/thor/actions/empty_directory.rb#138
1236
1446
  def say_status(status, color); end
1237
1447
  end
1238
1448
 
1239
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:36
1449
+ # source://thor//lib/thor/actions/inject_into_file.rb#36
1240
1450
  class Thor::Actions::InjectIntoFile < ::Thor::Actions::EmptyDirectory
1241
1451
  # @return [InjectIntoFile] a new instance of InjectIntoFile
1242
1452
  #
1243
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:39
1453
+ # source://thor//lib/thor/actions/inject_into_file.rb#39
1244
1454
  def initialize(base, destination, data, config); end
1245
1455
 
1246
1456
  # Returns the value of attribute behavior.
1247
1457
  #
1248
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:37
1458
+ # source://thor//lib/thor/actions/inject_into_file.rb#37
1249
1459
  def behavior; end
1250
1460
 
1251
1461
  # Returns the value of attribute flag.
1252
1462
  #
1253
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:37
1463
+ # source://thor//lib/thor/actions/inject_into_file.rb#37
1254
1464
  def flag; end
1255
1465
 
1256
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:52
1466
+ # source://thor//lib/thor/actions/inject_into_file.rb#52
1257
1467
  def invoke!; end
1258
1468
 
1259
1469
  # Returns the value of attribute replacement.
1260
1470
  #
1261
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:37
1471
+ # source://thor//lib/thor/actions/inject_into_file.rb#37
1262
1472
  def replacement; end
1263
1473
 
1264
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:72
1474
+ # source://thor//lib/thor/actions/inject_into_file.rb#74
1265
1475
  def revoke!; end
1266
1476
 
1267
1477
  protected
1268
1478
 
1479
+ # source://thor//lib/thor/actions/inject_into_file.rb#110
1480
+ def content; end
1481
+
1269
1482
  # Adds the content to the file.
1270
1483
  #
1271
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:108
1484
+ # source://thor//lib/thor/actions/inject_into_file.rb#120
1272
1485
  def replace!(regexp, string, force); end
1273
1486
 
1274
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:88
1487
+ # @return [Boolean]
1488
+ #
1489
+ # source://thor//lib/thor/actions/inject_into_file.rb#114
1490
+ def replacement_present?; end
1491
+
1492
+ # source://thor//lib/thor/actions/inject_into_file.rb#90
1275
1493
  def say_status(behavior, warning: T.unsafe(nil), color: T.unsafe(nil)); end
1276
1494
  end
1277
1495
 
@@ -1294,108 +1512,114 @@ end
1294
1512
  # gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
1295
1513
  # end
1296
1514
  #
1297
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:24
1515
+ # source://thor//lib/thor/actions/inject_into_file.rb#24
1298
1516
  Thor::Actions::WARNINGS = T.let(T.unsafe(nil), Hash)
1299
1517
 
1300
- # source://thor-1.2.1/lib/thor/error.rb:60
1518
+ # source://thor//lib/thor/error.rb#57
1301
1519
  class Thor::AmbiguousCommandError < ::Thor::Error; end
1302
1520
 
1303
- # source://thor-1.2.1/lib/thor/error.rb:62
1521
+ # source://thor//lib/thor/error.rb#59
1304
1522
  Thor::AmbiguousTaskError = Thor::AmbiguousCommandError
1305
1523
 
1306
- # source://thor-1.2.1/lib/thor/parser/argument.rb:2
1524
+ # source://thor//lib/thor/parser/argument.rb#2
1307
1525
  class Thor::Argument
1308
1526
  # @raise [ArgumentError]
1309
1527
  # @return [Argument] a new instance of Argument
1310
1528
  #
1311
- # source://thor-1.2.1/lib/thor/parser/argument.rb:8
1529
+ # source://thor//lib/thor/parser/argument.rb#8
1312
1530
  def initialize(name, options = T.unsafe(nil)); end
1313
1531
 
1314
1532
  # Returns the value of attribute banner.
1315
1533
  #
1316
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1534
+ # source://thor//lib/thor/parser/argument.rb#5
1317
1535
  def banner; end
1318
1536
 
1319
1537
  # Returns the value of attribute default.
1320
1538
  #
1321
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1539
+ # source://thor//lib/thor/parser/argument.rb#5
1322
1540
  def default; end
1323
1541
 
1324
1542
  # Returns the value of attribute description.
1325
1543
  #
1326
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1544
+ # source://thor//lib/thor/parser/argument.rb#5
1327
1545
  def description; end
1328
1546
 
1329
1547
  # Returns the value of attribute enum.
1330
1548
  #
1331
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1549
+ # source://thor//lib/thor/parser/argument.rb#5
1332
1550
  def enum; end
1333
1551
 
1552
+ # source://thor//lib/thor/parser/argument.rb#52
1553
+ def enum_to_s; end
1554
+
1334
1555
  # Returns the value of attribute name.
1335
1556
  #
1336
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1557
+ # source://thor//lib/thor/parser/argument.rb#5
1337
1558
  def human_name; end
1338
1559
 
1339
1560
  # Returns the value of attribute name.
1340
1561
  #
1341
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1562
+ # source://thor//lib/thor/parser/argument.rb#5
1342
1563
  def name; end
1343
1564
 
1565
+ # source://thor//lib/thor/parser/argument.rb#27
1566
+ def print_default; end
1567
+
1344
1568
  # Returns the value of attribute required.
1345
1569
  #
1346
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1570
+ # source://thor//lib/thor/parser/argument.rb#5
1347
1571
  def required; end
1348
1572
 
1349
1573
  # @return [Boolean]
1350
1574
  #
1351
- # source://thor-1.2.1/lib/thor/parser/argument.rb:31
1575
+ # source://thor//lib/thor/parser/argument.rb#39
1352
1576
  def required?; end
1353
1577
 
1354
1578
  # @return [Boolean]
1355
1579
  #
1356
- # source://thor-1.2.1/lib/thor/parser/argument.rb:35
1580
+ # source://thor//lib/thor/parser/argument.rb#43
1357
1581
  def show_default?; end
1358
1582
 
1359
1583
  # Returns the value of attribute type.
1360
1584
  #
1361
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1585
+ # source://thor//lib/thor/parser/argument.rb#5
1362
1586
  def type; end
1363
1587
 
1364
- # source://thor-1.2.1/lib/thor/parser/argument.rb:27
1588
+ # source://thor//lib/thor/parser/argument.rb#35
1365
1589
  def usage; end
1366
1590
 
1367
1591
  protected
1368
1592
 
1369
- # source://thor-1.2.1/lib/thor/parser/argument.rb:55
1593
+ # source://thor//lib/thor/parser/argument.rb#71
1370
1594
  def default_banner; end
1371
1595
 
1372
1596
  # @return [Boolean]
1373
1597
  #
1374
- # source://thor-1.2.1/lib/thor/parser/argument.rb:51
1598
+ # source://thor//lib/thor/parser/argument.rb#67
1375
1599
  def valid_type?(type); end
1376
1600
 
1377
1601
  # @raise [ArgumentError]
1378
1602
  #
1379
- # source://thor-1.2.1/lib/thor/parser/argument.rb:46
1603
+ # source://thor//lib/thor/parser/argument.rb#62
1380
1604
  def validate!; end
1381
1605
  end
1382
1606
 
1383
- # source://thor-1.2.1/lib/thor/parser/argument.rb:3
1607
+ # source://thor//lib/thor/parser/argument.rb#3
1384
1608
  Thor::Argument::VALID_TYPES = T.let(T.unsafe(nil), Array)
1385
1609
 
1386
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:2
1610
+ # source://thor//lib/thor/parser/arguments.rb#2
1387
1611
  class Thor::Arguments
1388
1612
  # Takes an array of Thor::Argument objects.
1389
1613
  #
1390
1614
  # @return [Arguments] a new instance of Arguments
1391
1615
  #
1392
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:26
1616
+ # source://thor//lib/thor/parser/arguments.rb#26
1393
1617
  def initialize(arguments = T.unsafe(nil)); end
1394
1618
 
1395
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:44
1619
+ # source://thor//lib/thor/parser/arguments.rb#40
1396
1620
  def parse(args); end
1397
1621
 
1398
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:57
1622
+ # source://thor//lib/thor/parser/arguments.rb#53
1399
1623
  def remaining; end
1400
1624
 
1401
1625
  private
@@ -1404,22 +1628,22 @@ class Thor::Arguments
1404
1628
  #
1405
1629
  # @raise [RequiredArgumentMissingError]
1406
1630
  #
1407
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:170
1631
+ # source://thor//lib/thor/parser/arguments.rb#186
1408
1632
  def check_requirement!; end
1409
1633
 
1410
1634
  # @return [Boolean]
1411
1635
  #
1412
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:88
1636
+ # source://thor//lib/thor/parser/arguments.rb#84
1413
1637
  def current_is_value?; end
1414
1638
 
1415
1639
  # @return [Boolean]
1416
1640
  #
1417
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:68
1641
+ # source://thor//lib/thor/parser/arguments.rb#64
1418
1642
  def last?; end
1419
1643
 
1420
1644
  # @return [Boolean]
1421
1645
  #
1422
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:63
1646
+ # source://thor//lib/thor/parser/arguments.rb#59
1423
1647
  def no_or_skip?(arg); end
1424
1648
 
1425
1649
  # Runs through the argument array getting all strings until no string is
@@ -1431,7 +1655,7 @@ class Thor::Arguments
1431
1655
  #
1432
1656
  # ["a", "b", "c"]
1433
1657
  #
1434
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:122
1658
+ # source://thor//lib/thor/parser/arguments.rb#118
1435
1659
  def parse_array(name); end
1436
1660
 
1437
1661
  # Runs through the argument array getting strings that contains ":" and
@@ -1443,14 +1667,14 @@ class Thor::Arguments
1443
1667
  #
1444
1668
  # { "name" => "string", "age" => "integer" }
1445
1669
  #
1446
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:101
1670
+ # source://thor//lib/thor/parser/arguments.rb#97
1447
1671
  def parse_hash(name); end
1448
1672
 
1449
1673
  # Check if the peek is numeric format and return a Float or Integer.
1450
1674
  # Check if the peek is included in enum if enum is provided.
1451
1675
  # Otherwise raises an error.
1452
1676
  #
1453
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:133
1677
+ # source://thor//lib/thor/parser/arguments.rb#139
1454
1678
  def parse_numeric(name); end
1455
1679
 
1456
1680
  # Parse string:
@@ -1458,34 +1682,42 @@ class Thor::Arguments
1458
1682
  # for --no-string-arg, nil
1459
1683
  # Check if the peek is included in enum if enum is provided. Otherwise raises an error.
1460
1684
  #
1461
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:154
1685
+ # source://thor//lib/thor/parser/arguments.rb#158
1462
1686
  def parse_string(name); end
1463
1687
 
1464
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:72
1688
+ # source://thor//lib/thor/parser/arguments.rb#68
1465
1689
  def peek; end
1466
1690
 
1467
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:76
1691
+ # source://thor//lib/thor/parser/arguments.rb#72
1468
1692
  def shift; end
1469
1693
 
1470
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:80
1694
+ # source://thor//lib/thor/parser/arguments.rb#76
1471
1695
  def unshift(arg); end
1472
1696
 
1697
+ # Raises an error if the switch is an enum and the values aren't included on it.
1698
+ #
1699
+ # source://thor//lib/thor/parser/arguments.rb#172
1700
+ def validate_enum_value!(name, value, message); end
1701
+
1473
1702
  class << self
1474
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:19
1703
+ # source://thor//lib/thor/parser/arguments.rb#19
1475
1704
  def parse(*args); end
1476
1705
 
1477
1706
  # Receives an array of args and returns two arrays, one with arguments
1478
1707
  # and one with switches.
1479
1708
  #
1480
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:8
1709
+ # source://thor//lib/thor/parser/arguments.rb#8
1481
1710
  def split(args); end
1482
1711
  end
1483
1712
  end
1484
1713
 
1485
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:3
1714
+ # source://thor//lib/thor/parser/arguments.rb#3
1486
1715
  Thor::Arguments::NUMERIC = T.let(T.unsafe(nil), Regexp)
1487
1716
 
1488
- # source://thor-1.2.1/lib/thor/shell.rb:4
1717
+ # source://thor//lib/thor/error.rb#104
1718
+ class Thor::AtLeastOneRequiredArgumentError < ::Thor::InvocationError; end
1719
+
1720
+ # source://thor//lib/thor/shell.rb#4
1489
1721
  module Thor::Base
1490
1722
  include ::Thor::Invocation
1491
1723
  include ::Thor::Shell
@@ -1509,66 +1741,66 @@ module Thor::Base
1509
1741
  #
1510
1742
  # config<Hash>:: Configuration for this Thor class.
1511
1743
  #
1512
- # source://thor-1.2.1/lib/thor/base.rb:53
1744
+ # source://thor//lib/thor/base.rb#53
1513
1745
  def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end
1514
1746
 
1515
1747
  # Returns the value of attribute args.
1516
1748
  #
1517
- # source://thor-1.2.1/lib/thor/base.rb:35
1749
+ # source://thor//lib/thor/base.rb#35
1518
1750
  def args; end
1519
1751
 
1520
1752
  # Sets the attribute args
1521
1753
  #
1522
1754
  # @param value the value to set the attribute args to.
1523
1755
  #
1524
- # source://thor-1.2.1/lib/thor/base.rb:35
1756
+ # source://thor//lib/thor/base.rb#35
1525
1757
  def args=(_arg0); end
1526
1758
 
1527
1759
  # Returns the value of attribute options.
1528
1760
  #
1529
- # source://thor-1.2.1/lib/thor/base.rb:35
1761
+ # source://thor//lib/thor/base.rb#35
1530
1762
  def options; end
1531
1763
 
1532
1764
  # Sets the attribute options
1533
1765
  #
1534
1766
  # @param value the value to set the attribute options to.
1535
1767
  #
1536
- # source://thor-1.2.1/lib/thor/base.rb:35
1768
+ # source://thor//lib/thor/base.rb#35
1537
1769
  def options=(_arg0); end
1538
1770
 
1539
1771
  # Returns the value of attribute parent_options.
1540
1772
  #
1541
- # source://thor-1.2.1/lib/thor/base.rb:35
1773
+ # source://thor//lib/thor/base.rb#35
1542
1774
  def parent_options; end
1543
1775
 
1544
1776
  # Sets the attribute parent_options
1545
1777
  #
1546
1778
  # @param value the value to set the attribute parent_options to.
1547
1779
  #
1548
- # source://thor-1.2.1/lib/thor/base.rb:35
1780
+ # source://thor//lib/thor/base.rb#35
1549
1781
  def parent_options=(_arg0); end
1550
1782
 
1551
1783
  class << self
1552
- # source://thor-1.2.1/lib/thor/base.rb:100
1784
+ # source://thor//lib/thor/base.rb#116
1553
1785
  def included(base); end
1554
1786
 
1555
1787
  # Whenever a class inherits from Thor or Thor::Group, we should track the
1556
1788
  # class and the file on Thor::Base. This is the method responsible for it.
1557
1789
  #
1558
- # source://thor-1.2.1/lib/thor/base.rb:128
1790
+ # source://thor//lib/thor/base.rb#144
1559
1791
  def register_klass_file(klass); end
1560
1792
 
1561
1793
  # Returns the shell used in all Thor classes. If you are in a Unix platform
1562
1794
  # it will use a colored log, otherwise it will use a basic one without color.
1563
1795
  #
1564
- # source://thor-1.2.1/lib/thor/shell.rb:11
1796
+ # source://thor//lib/thor/shell.rb#11
1565
1797
  def shell; end
1566
1798
 
1567
1799
  # Sets the attribute shell
1568
1800
  #
1569
1801
  # @param value the value to set the attribute shell to.
1570
1802
  #
1571
- # source://thor-1.2.1/lib/thor/shell.rb:6
1803
+ # source://thor//lib/thor/shell.rb#6
1572
1804
  def shell=(_arg0); end
1573
1805
 
1574
1806
  # Returns the files where the subclasses are kept.
@@ -1576,7 +1808,7 @@ module Thor::Base
1576
1808
  # ==== Returns
1577
1809
  # Hash[path<String> => Class]
1578
1810
  #
1579
- # source://thor-1.2.1/lib/thor/base.rb:121
1811
+ # source://thor//lib/thor/base.rb#137
1580
1812
  def subclass_files; end
1581
1813
 
1582
1814
  # Returns the classes that inherits from Thor or Thor::Group.
@@ -1584,12 +1816,12 @@ module Thor::Base
1584
1816
  # ==== Returns
1585
1817
  # Array[Class]
1586
1818
  #
1587
- # source://thor-1.2.1/lib/thor/base.rb:112
1819
+ # source://thor//lib/thor/base.rb#128
1588
1820
  def subclasses; end
1589
1821
  end
1590
1822
  end
1591
1823
 
1592
- # source://thor-1.2.1/lib/thor/base.rb:137
1824
+ # source://thor//lib/thor/base.rb#153
1593
1825
  module Thor::Base::ClassMethods
1594
1826
  # Returns the commands for this Thor class and all subclasses.
1595
1827
  #
@@ -1597,7 +1829,7 @@ module Thor::Base::ClassMethods
1597
1829
  # Hash:: An ordered hash with commands names as keys and Thor::Command
1598
1830
  # objects as values.
1599
1831
  #
1600
- # source://thor-1.2.1/lib/thor/base.rb:383
1832
+ # source://thor//lib/thor/base.rb#482
1601
1833
  def all_commands; end
1602
1834
 
1603
1835
  # Returns the commands for this Thor class and all subclasses.
@@ -1606,13 +1838,13 @@ module Thor::Base::ClassMethods
1606
1838
  # Hash:: An ordered hash with commands names as keys and Thor::Command
1607
1839
  # objects as values.
1608
1840
  #
1609
- # source://thor-1.2.1/lib/thor/base.rb:383
1841
+ # source://thor//lib/thor/base.rb#482
1610
1842
  def all_tasks; end
1611
1843
 
1612
1844
  # If you want to use defaults that don't match the type of an option,
1613
1845
  # either specify `check_default_type: false` or call `allow_incompatible_default_type!`
1614
1846
  #
1615
- # source://thor-1.2.1/lib/thor/base.rb:173
1847
+ # source://thor//lib/thor/base.rb#189
1616
1848
  def allow_incompatible_default_type!; end
1617
1849
 
1618
1850
  # Adds an argument to the class and creates an attr_accessor for it.
@@ -1650,7 +1882,7 @@ module Thor::Base::ClassMethods
1650
1882
  # ==== Errors
1651
1883
  # ArgumentError:: Raised if you supply a required argument after a non required one.
1652
1884
  #
1653
- # source://thor-1.2.1/lib/thor/base.rb:245
1885
+ # source://thor//lib/thor/base.rb#261
1654
1886
  def argument(name, options = T.unsafe(nil)); end
1655
1887
 
1656
1888
  # Returns this class arguments, looking up in the ancestors chain.
@@ -1658,42 +1890,116 @@ module Thor::Base::ClassMethods
1658
1890
  # ==== Returns
1659
1891
  # Array[Thor::Argument]
1660
1892
  #
1661
- # source://thor-1.2.1/lib/thor/base.rb:277
1893
+ # source://thor//lib/thor/base.rb#293
1662
1894
  def arguments; end
1663
1895
 
1664
- # source://thor-1.2.1/lib/thor/base.rb:146
1896
+ # source://thor//lib/thor/base.rb#162
1665
1897
  def attr_accessor(*_arg0); end
1666
1898
 
1667
- # source://thor-1.2.1/lib/thor/base.rb:138
1899
+ # source://thor//lib/thor/base.rb#154
1668
1900
  def attr_reader(*_arg0); end
1669
1901
 
1670
- # source://thor-1.2.1/lib/thor/base.rb:142
1902
+ # source://thor//lib/thor/base.rb#158
1671
1903
  def attr_writer(*_arg0); end
1672
1904
 
1673
- # source://thor-1.2.1/lib/thor/base.rb:177
1905
+ # source://thor//lib/thor/base.rb#193
1674
1906
  def check_default_type; end
1675
1907
 
1676
1908
  # If you want to raise an error when the default value of an option does not match
1677
1909
  # the type call check_default_type!
1678
1910
  # This will be the default; for compatibility a deprecation warning is issued if necessary.
1679
1911
  #
1680
- # source://thor-1.2.1/lib/thor/base.rb:167
1912
+ # source://thor//lib/thor/base.rb#183
1681
1913
  def check_default_type!; end
1682
1914
 
1683
- # source://thor-1.2.1/lib/thor/base.rb:156
1915
+ # source://thor//lib/thor/base.rb#172
1684
1916
  def check_unknown_options; end
1685
1917
 
1686
1918
  # If you want to raise an error for unknown options, call check_unknown_options!
1687
1919
  # This is disabled by default to allow dynamic invocations.
1688
1920
  #
1689
- # source://thor-1.2.1/lib/thor/base.rb:152
1921
+ # source://thor//lib/thor/base.rb#168
1690
1922
  def check_unknown_options!; end
1691
1923
 
1692
1924
  # @return [Boolean]
1693
1925
  #
1694
- # source://thor-1.2.1/lib/thor/base.rb:160
1926
+ # source://thor//lib/thor/base.rb#176
1695
1927
  def check_unknown_options?(config); end
1696
1928
 
1929
+ # Adds and declares option group for required at least one of options in the
1930
+ # block and arguments. You can declare options as the outside of the block.
1931
+ #
1932
+ # ==== Examples
1933
+ #
1934
+ # class_at_least_one do
1935
+ # class_option :one
1936
+ # class_option :two
1937
+ # end
1938
+ #
1939
+ # Or
1940
+ #
1941
+ # class_option :one
1942
+ # class_option :two
1943
+ # class_at_least_one :one, :two
1944
+ #
1945
+ # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError
1946
+ # will be raised.
1947
+ #
1948
+ # You can use class_at_least_one and class_exclusive at the same time.
1949
+ #
1950
+ # class_exclusive do
1951
+ # class_at_least_one do
1952
+ # class_option :one
1953
+ # class_option :two
1954
+ # end
1955
+ # end
1956
+ #
1957
+ # Then it is required either only one of "--one" or "--two".
1958
+ #
1959
+ # source://thor//lib/thor/base.rb#392
1960
+ def class_at_least_one(*args, &block); end
1961
+
1962
+ # Returns this class at least one of required options array set, looking up in the ancestors chain.
1963
+ #
1964
+ # ==== Returns
1965
+ # Array[Array[Thor::Option.name]]
1966
+ #
1967
+ # source://thor//lib/thor/base.rb#411
1968
+ def class_at_least_one_option_names; end
1969
+
1970
+ # Adds and declares option group for exclusive options in the
1971
+ # block and arguments. You can declare options as the outside of the block.
1972
+ #
1973
+ # ==== Parameters
1974
+ # Array[Thor::Option.name]
1975
+ #
1976
+ # ==== Examples
1977
+ #
1978
+ # class_exclusive do
1979
+ # class_option :one
1980
+ # class_option :two
1981
+ # end
1982
+ #
1983
+ # Or
1984
+ #
1985
+ # class_option :one
1986
+ # class_option :two
1987
+ # class_exclusive :one, :two
1988
+ #
1989
+ # If you give "--one" and "--two" at the same time ExclusiveArgumentsError
1990
+ # will be raised.
1991
+ #
1992
+ # source://thor//lib/thor/base.rb#357
1993
+ def class_exclusive(*args, &block); end
1994
+
1995
+ # Returns this class exclusive options array set, looking up in the ancestors chain.
1996
+ #
1997
+ # ==== Returns
1998
+ # Array[Array[Thor::Option.name]]
1999
+ #
2000
+ # source://thor//lib/thor/base.rb#402
2001
+ def class_exclusive_option_names; end
2002
+
1697
2003
  # Adds an option to the set of class options
1698
2004
  #
1699
2005
  # ==== Parameters
@@ -1710,7 +2016,7 @@ module Thor::Base::ClassMethods
1710
2016
  # :banner:: -- String to show on usage notes.
1711
2017
  # :hide:: -- If you want to hide this option from the help.
1712
2018
  #
1713
- # source://thor-1.2.1/lib/thor/base.rb:312
2019
+ # source://thor//lib/thor/base.rb#328
1714
2020
  def class_option(name, options = T.unsafe(nil)); end
1715
2021
 
1716
2022
  # Adds a bunch of options to the set of class options.
@@ -1722,7 +2028,7 @@ module Thor::Base::ClassMethods
1722
2028
  # ==== Parameters
1723
2029
  # Hash[Symbol => Object]
1724
2030
  #
1725
- # source://thor-1.2.1/lib/thor/base.rb:290
2031
+ # source://thor//lib/thor/base.rb#306
1726
2032
  def class_options(options = T.unsafe(nil)); end
1727
2033
 
1728
2034
  # Returns the commands for this Thor class.
@@ -1731,7 +2037,7 @@ module Thor::Base::ClassMethods
1731
2037
  # Hash:: An ordered hash with commands names as keys and Thor::Command
1732
2038
  # objects as values.
1733
2039
  #
1734
- # source://thor-1.2.1/lib/thor/base.rb:372
2040
+ # source://thor//lib/thor/base.rb#471
1735
2041
  def commands; end
1736
2042
 
1737
2043
  # If true, option set will not suspend the execution of the command when
@@ -1739,14 +2045,14 @@ module Thor::Base::ClassMethods
1739
2045
  #
1740
2046
  # @return [Boolean]
1741
2047
  #
1742
- # source://thor-1.2.1/lib/thor/base.rb:191
2048
+ # source://thor//lib/thor/base.rb#207
1743
2049
  def disable_required_check?(command_name); end
1744
2050
 
1745
2051
  # A flag that makes the process exit with status 1 if any error happens.
1746
2052
  #
1747
2053
  # @return [Boolean]
1748
2054
  #
1749
- # source://thor-1.2.1/lib/thor/base.rb:529
2055
+ # source://thor//lib/thor/base.rb#628
1750
2056
  def exit_on_failure?; end
1751
2057
 
1752
2058
  # Defines the group. This is used when thor list is invoked so you can specify
@@ -1755,22 +2061,22 @@ module Thor::Base::ClassMethods
1755
2061
  # ==== Parameters
1756
2062
  # name<String|Symbol>
1757
2063
  #
1758
- # source://thor-1.2.1/lib/thor/base.rb:358
2064
+ # source://thor//lib/thor/base.rb#457
1759
2065
  def group(name = T.unsafe(nil)); end
1760
2066
 
1761
2067
  # @raise [InvocationError]
1762
2068
  #
1763
- # source://thor-1.2.1/lib/thor/base.rb:519
2069
+ # source://thor//lib/thor/base.rb#618
1764
2070
  def handle_argument_error(command, error, args, arity); end
1765
2071
 
1766
2072
  # @raise [UndefinedCommandError]
1767
2073
  #
1768
- # source://thor-1.2.1/lib/thor/base.rb:514
2074
+ # source://thor//lib/thor/base.rb#613
1769
2075
  def handle_no_command_error(command, has_namespace = T.unsafe(nil)); end
1770
2076
 
1771
2077
  # @raise [UndefinedCommandError]
1772
2078
  #
1773
- # source://thor-1.2.1/lib/thor/base.rb:514
2079
+ # source://thor//lib/thor/base.rb#613
1774
2080
  def handle_no_task_error(command, has_namespace = T.unsafe(nil)); end
1775
2081
 
1776
2082
  # Sets the namespace for the Thor or Thor::Group class. By default the
@@ -1795,7 +2101,7 @@ module Thor::Base::ClassMethods
1795
2101
  #
1796
2102
  # thor :my_command
1797
2103
  #
1798
- # source://thor-1.2.1/lib/thor/base.rb:467
2104
+ # source://thor//lib/thor/base.rb#566
1799
2105
  def namespace(name = T.unsafe(nil)); end
1800
2106
 
1801
2107
  # All methods defined inside the given block are not added as commands.
@@ -1817,15 +2123,15 @@ module Thor::Base::ClassMethods
1817
2123
  # remove_command :this_is_not_a_command
1818
2124
  # end
1819
2125
  #
1820
- # source://thor-1.2.1/lib/thor/base.rb:431
2126
+ # source://thor//lib/thor/base.rb#530
1821
2127
  def no_commands(&block); end
1822
2128
 
1823
2129
  # @return [Boolean]
1824
2130
  #
1825
- # source://thor-1.2.1/lib/thor/base.rb:441
2131
+ # source://thor//lib/thor/base.rb#540
1826
2132
  def no_commands?; end
1827
2133
 
1828
- # source://thor-1.2.1/lib/thor/base.rb:437
2134
+ # source://thor//lib/thor/base.rb#536
1829
2135
  def no_commands_context; end
1830
2136
 
1831
2137
  # All methods defined inside the given block are not added as commands.
@@ -1847,7 +2153,7 @@ module Thor::Base::ClassMethods
1847
2153
  # remove_command :this_is_not_a_command
1848
2154
  # end
1849
2155
  #
1850
- # source://thor-1.2.1/lib/thor/base.rb:431
2156
+ # source://thor//lib/thor/base.rb#530
1851
2157
  def no_tasks(&block); end
1852
2158
 
1853
2159
  # Allows to use private methods from parent in child classes as commands.
@@ -1860,7 +2166,7 @@ module Thor::Base::ClassMethods
1860
2166
  # public_command :foo
1861
2167
  # public_command :foo, :bar, :baz
1862
2168
  #
1863
- # source://thor-1.2.1/lib/thor/base.rb:507
2169
+ # source://thor//lib/thor/base.rb#606
1864
2170
  def public_command(*names); end
1865
2171
 
1866
2172
  # Allows to use private methods from parent in child classes as commands.
@@ -1873,7 +2179,7 @@ module Thor::Base::ClassMethods
1873
2179
  # public_command :foo
1874
2180
  # public_command :foo, :bar, :baz
1875
2181
  #
1876
- # source://thor-1.2.1/lib/thor/base.rb:507
2182
+ # source://thor//lib/thor/base.rb#606
1877
2183
  def public_task(*names); end
1878
2184
 
1879
2185
  # Removes a previous defined argument. If :undefine is given, undefine
@@ -1887,7 +2193,7 @@ module Thor::Base::ClassMethods
1887
2193
  # remove_argument :foo
1888
2194
  # remove_argument :foo, :bar, :baz, :undefine => true
1889
2195
  #
1890
- # source://thor-1.2.1/lib/thor/base.rb:327
2196
+ # source://thor//lib/thor/base.rb#426
1891
2197
  def remove_argument(*names); end
1892
2198
 
1893
2199
  # Removes a previous defined class option.
@@ -1900,7 +2206,7 @@ module Thor::Base::ClassMethods
1900
2206
  # remove_class_option :foo
1901
2207
  # remove_class_option :foo, :bar, :baz
1902
2208
  #
1903
- # source://thor-1.2.1/lib/thor/base.rb:346
2209
+ # source://thor//lib/thor/base.rb#445
1904
2210
  def remove_class_option(*names); end
1905
2211
 
1906
2212
  # Removes a given command from this Thor class. This is usually done if you
@@ -1915,7 +2221,7 @@ module Thor::Base::ClassMethods
1915
2221
  # options<Hash>:: You can give :undefine => true if you want commands the method
1916
2222
  # to be undefined from the class as well.
1917
2223
  #
1918
- # source://thor-1.2.1/lib/thor/base.rb:401
2224
+ # source://thor//lib/thor/base.rb#500
1919
2225
  def remove_command(*names); end
1920
2226
 
1921
2227
  # Removes a given command from this Thor class. This is usually done if you
@@ -1930,7 +2236,7 @@ module Thor::Base::ClassMethods
1930
2236
  # options<Hash>:: You can give :undefine => true if you want commands the method
1931
2237
  # to be undefined from the class as well.
1932
2238
  #
1933
- # source://thor-1.2.1/lib/thor/base.rb:401
2239
+ # source://thor//lib/thor/base.rb#500
1934
2240
  def remove_task(*names); end
1935
2241
 
1936
2242
  # Parses the command and options from the given args, instantiate the class
@@ -1941,7 +2247,7 @@ module Thor::Base::ClassMethods
1941
2247
  # script = MyScript.new(args, options, config)
1942
2248
  # script.invoke(:command, first_arg, second_arg, third_arg)
1943
2249
  #
1944
- # source://thor-1.2.1/lib/thor/base.rb:483
2250
+ # source://thor//lib/thor/base.rb#582
1945
2251
  def start(given_args = T.unsafe(nil), config = T.unsafe(nil)); end
1946
2252
 
1947
2253
  # If true, option parsing is suspended as soon as an unknown option or a
@@ -1950,22 +2256,22 @@ module Thor::Base::ClassMethods
1950
2256
  #
1951
2257
  # @return [Boolean]
1952
2258
  #
1953
- # source://thor-1.2.1/lib/thor/base.rb:185
2259
+ # source://thor//lib/thor/base.rb#201
1954
2260
  def stop_on_unknown_option?(command_name); end
1955
2261
 
1956
- # source://thor-1.2.1/lib/thor/base.rb:202
2262
+ # source://thor//lib/thor/base.rb#218
1957
2263
  def strict_args_position; end
1958
2264
 
1959
2265
  # If you want only strict string args (useful when cascading thor classes),
1960
2266
  # call strict_args_position! This is disabled by default to allow dynamic
1961
2267
  # invocations.
1962
2268
  #
1963
- # source://thor-1.2.1/lib/thor/base.rb:198
2269
+ # source://thor//lib/thor/base.rb#214
1964
2270
  def strict_args_position!; end
1965
2271
 
1966
2272
  # @return [Boolean]
1967
2273
  #
1968
- # source://thor-1.2.1/lib/thor/base.rb:206
2274
+ # source://thor//lib/thor/base.rb#222
1969
2275
  def strict_args_position?(config); end
1970
2276
 
1971
2277
  # Returns the commands for this Thor class.
@@ -1974,7 +2280,7 @@ module Thor::Base::ClassMethods
1974
2280
  # Hash:: An ordered hash with commands names as keys and Thor::Command
1975
2281
  # objects as values.
1976
2282
  #
1977
- # source://thor-1.2.1/lib/thor/base.rb:372
2283
+ # source://thor//lib/thor/base.rb#471
1978
2284
  def tasks; end
1979
2285
 
1980
2286
  protected
@@ -1982,12 +2288,12 @@ module Thor::Base::ClassMethods
1982
2288
  # SIGNATURE: Sets the baseclass. This is where the superclass lookup
1983
2289
  # finishes.
1984
2290
  #
1985
- # source://thor-1.2.1/lib/thor/base.rb:679
2291
+ # source://thor//lib/thor/base.rb#777
1986
2292
  def baseclass; end
1987
2293
 
1988
2294
  # The basename of the program invoking the thor class.
1989
2295
  #
1990
- # source://thor-1.2.1/lib/thor/base.rb:673
2296
+ # source://thor//lib/thor/base.rb#771
1991
2297
  def basename; end
1992
2298
 
1993
2299
  # Build an option and adds it to the given scope.
@@ -1997,7 +2303,7 @@ module Thor::Base::ClassMethods
1997
2303
  # options<Hash>:: Described in both class_option and method_option.
1998
2304
  # scope<Hash>:: Options hash that is being built up
1999
2305
  #
2000
- # source://thor-1.2.1/lib/thor/base.rb:590
2306
+ # source://thor//lib/thor/base.rb#688
2001
2307
  def build_option(name, options, scope); end
2002
2308
 
2003
2309
  # Receives a hash of options, parse them and add to the scope. This is a
@@ -2008,164 +2314,187 @@ module Thor::Base::ClassMethods
2008
2314
  # ==== Parameters
2009
2315
  # Hash[Symbol => Object]
2010
2316
  #
2011
- # source://thor-1.2.1/lib/thor/base.rb:601
2317
+ # source://thor//lib/thor/base.rb#699
2012
2318
  def build_options(options, scope); end
2013
2319
 
2320
+ # Get target(method_options or class_options) options
2321
+ # of before and after by block evaluation.
2322
+ #
2323
+ # source://thor//lib/thor/base.rb#808
2324
+ def built_option_names(target, opt = T.unsafe(nil), &block); end
2325
+
2014
2326
  # Prints the class options per group. If an option does not belong to
2015
2327
  # any group, it's printed as Class option.
2016
2328
  #
2017
- # source://thor-1.2.1/lib/thor/base.rb:539
2329
+ # source://thor//lib/thor/base.rb#638
2018
2330
  def class_options_help(shell, groups = T.unsafe(nil)); end
2019
2331
 
2332
+ # Get command scope member by name.
2333
+ #
2334
+ # source://thor//lib/thor/base.rb#816
2335
+ def command_scope_member(name, options = T.unsafe(nil)); end
2336
+
2020
2337
  # SIGNATURE: Creates a new command if valid_command? is true. This method is
2021
2338
  # called when a new method is added to the class.
2022
2339
  #
2023
- # source://thor-1.2.1/lib/thor/base.rb:684
2340
+ # source://thor//lib/thor/base.rb#782
2024
2341
  def create_command(meth); end
2025
2342
 
2026
2343
  # SIGNATURE: Creates a new command if valid_command? is true. This method is
2027
2344
  # called when a new method is added to the class.
2028
2345
  #
2029
- # source://thor-1.2.1/lib/thor/base.rb:684
2346
+ # source://thor//lib/thor/base.rb#782
2030
2347
  def create_task(meth); end
2031
2348
 
2032
2349
  # SIGNATURE: The hook invoked by start.
2033
2350
  #
2034
2351
  # @raise [NotImplementedError]
2035
2352
  #
2036
- # source://thor-1.2.1/lib/thor/base.rb:694
2353
+ # source://thor//lib/thor/base.rb#792
2037
2354
  def dispatch(command, given_args, given_opts, config); end
2038
2355
 
2039
2356
  # Finds a command with the given name. If the command belongs to the current
2040
2357
  # class, just return it, otherwise dup it and add the fresh copy to the
2041
2358
  # current command hash.
2042
2359
  #
2043
- # source://thor-1.2.1/lib/thor/base.rb:610
2360
+ # source://thor//lib/thor/base.rb#708
2044
2361
  def find_and_refresh_command(name); end
2045
2362
 
2046
2363
  # Finds a command with the given name. If the command belongs to the current
2047
2364
  # class, just return it, otherwise dup it and add the fresh copy to the
2048
2365
  # current command hash.
2049
2366
  #
2050
- # source://thor-1.2.1/lib/thor/base.rb:610
2367
+ # source://thor//lib/thor/base.rb#708
2051
2368
  def find_and_refresh_task(name); end
2052
2369
 
2053
2370
  # Retrieves a value from superclass. If it reaches the baseclass,
2054
2371
  # returns default.
2055
2372
  #
2056
- # source://thor-1.2.1/lib/thor/base.rb:651
2373
+ # source://thor//lib/thor/base.rb#749
2057
2374
  def from_superclass(method, default = T.unsafe(nil)); end
2058
2375
 
2059
- # Everytime someone inherits from a Thor class, register the klass
2376
+ # Every time someone inherits from a Thor class, register the klass
2060
2377
  # and file into baseclass.
2061
2378
  #
2062
- # source://thor-1.2.1/lib/thor/base.rb:623
2379
+ # source://thor//lib/thor/base.rb#721
2063
2380
  def inherited(klass); end
2064
2381
 
2065
2382
  # SIGNATURE: Defines behavior when the initialize method is added to the
2066
2383
  # class.
2067
2384
  #
2068
- # source://thor-1.2.1/lib/thor/base.rb:690
2385
+ # source://thor//lib/thor/base.rb#788
2069
2386
  def initialize_added; end
2070
2387
 
2071
2388
  # Raises an error if the word given is a Thor reserved word.
2072
2389
  #
2073
2390
  # @return [Boolean]
2074
2391
  #
2075
- # source://thor-1.2.1/lib/thor/base.rb:579
2392
+ # source://thor//lib/thor/base.rb#677
2076
2393
  def is_thor_reserved_word?(word, type); end
2077
2394
 
2078
2395
  # Fire this callback whenever a method is added. Added methods are
2079
2396
  # tracked as commands by invoking the create_command method.
2080
2397
  #
2081
- # source://thor-1.2.1/lib/thor/base.rb:631
2398
+ # source://thor//lib/thor/base.rb#729
2082
2399
  def method_added(meth); end
2083
2400
 
2084
2401
  # Receives a set of options and print them.
2085
2402
  #
2086
- # source://thor-1.2.1/lib/thor/base.rb:557
2403
+ # source://thor//lib/thor/base.rb#656
2087
2404
  def print_options(shell, options, group_name = T.unsafe(nil)); end
2405
+
2406
+ # Register a relation of options for target(method_option/class_option)
2407
+ # by args and block.
2408
+ #
2409
+ # source://thor//lib/thor/base.rb#798
2410
+ def register_options_relation_for(target, relation, *args, &block); end
2088
2411
  end
2089
2412
 
2090
- # source://thor-1.2.1/lib/thor/command.rb:2
2413
+ # source://thor//lib/thor/command.rb#2
2091
2414
  class Thor::Command < ::Struct
2092
2415
  # @return [Command] a new instance of Command
2093
2416
  #
2094
- # source://thor-1.2.1/lib/thor/command.rb:5
2095
- def initialize(name, description, long_description, usage, options = T.unsafe(nil)); end
2417
+ # source://thor//lib/thor/command.rb#5
2418
+ def initialize(name, description, long_description, wrap_long_description, usage, options = T.unsafe(nil), options_relation = T.unsafe(nil)); end
2096
2419
 
2097
2420
  # Returns the formatted usage by injecting given required arguments
2098
2421
  # and required options into the given usage.
2099
2422
  #
2100
- # source://thor-1.2.1/lib/thor/command.rb:41
2423
+ # source://thor//lib/thor/command.rb#42
2101
2424
  def formatted_usage(klass, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end
2102
2425
 
2103
2426
  # @return [Boolean]
2104
2427
  #
2105
- # source://thor-1.2.1/lib/thor/command.rb:14
2428
+ # source://thor//lib/thor/command.rb#15
2106
2429
  def hidden?; end
2107
2430
 
2431
+ # source://thor//lib/thor/command.rb#70
2432
+ def method_at_least_one_option_names; end
2433
+
2434
+ # source://thor//lib/thor/command.rb#66
2435
+ def method_exclusive_option_names; end
2436
+
2108
2437
  # By default, a command invokes a method in the thor class. You can change this
2109
2438
  # implementation to create custom commands.
2110
2439
  #
2111
- # source://thor-1.2.1/lib/thor/command.rb:20
2440
+ # source://thor//lib/thor/command.rb#21
2112
2441
  def run(instance, args = T.unsafe(nil)); end
2113
2442
 
2114
2443
  protected
2115
2444
 
2116
2445
  # @return [Boolean]
2117
2446
  #
2118
- # source://thor-1.2.1/lib/thor/command.rb:105
2447
+ # source://thor//lib/thor/command.rb#114
2119
2448
  def handle_argument_error?(instance, error, caller); end
2120
2449
 
2121
2450
  # @return [Boolean]
2122
2451
  #
2123
- # source://thor-1.2.1/lib/thor/command.rb:112
2452
+ # source://thor//lib/thor/command.rb#121
2124
2453
  def handle_no_method_error?(instance, error, caller); end
2125
2454
 
2126
2455
  # @return [Boolean]
2127
2456
  #
2128
- # source://thor-1.2.1/lib/thor/command.rb:95
2457
+ # source://thor//lib/thor/command.rb#104
2129
2458
  def local_method?(instance, name); end
2130
2459
 
2131
2460
  # @return [Boolean]
2132
2461
  #
2133
- # source://thor-1.2.1/lib/thor/command.rb:78
2462
+ # source://thor//lib/thor/command.rb#87
2134
2463
  def not_debugging?(instance); end
2135
2464
 
2136
2465
  # @return [Boolean]
2137
2466
  #
2138
- # source://thor-1.2.1/lib/thor/command.rb:91
2467
+ # source://thor//lib/thor/command.rb#100
2139
2468
  def private_method?(instance); end
2140
2469
 
2141
2470
  # Given a target, checks if this class name is a public method.
2142
2471
  #
2143
2472
  # @return [Boolean]
2144
2473
  #
2145
- # source://thor-1.2.1/lib/thor/command.rb:87
2474
+ # source://thor//lib/thor/command.rb#96
2146
2475
  def public_method?(instance); end
2147
2476
 
2148
2477
  # Add usage with required arguments
2149
2478
  #
2150
- # source://thor-1.2.1/lib/thor/command.rb:68
2479
+ # source://thor//lib/thor/command.rb#77
2151
2480
  def required_arguments_for(klass, usage); end
2152
2481
 
2153
- # source://thor-1.2.1/lib/thor/command.rb:82
2482
+ # source://thor//lib/thor/command.rb#91
2154
2483
  def required_options; end
2155
2484
 
2156
- # source://thor-1.2.1/lib/thor/command.rb:100
2485
+ # source://thor//lib/thor/command.rb#109
2157
2486
  def sans_backtrace(backtrace, caller); end
2158
2487
 
2159
2488
  private
2160
2489
 
2161
- # source://thor-1.2.1/lib/thor/command.rb:9
2490
+ # source://thor//lib/thor/command.rb#9
2162
2491
  def initialize_copy(other); end
2163
2492
  end
2164
2493
 
2165
- # source://thor-1.2.1/lib/thor/command.rb:3
2494
+ # source://thor//lib/thor/command.rb#3
2166
2495
  Thor::Command::FILE_REGEXP = T.let(T.unsafe(nil), Regexp)
2167
2496
 
2168
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:2
2497
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#2
2169
2498
  module Thor::CoreExt; end
2170
2499
 
2171
2500
  # A hash with indifferent access and magic predicates.
@@ -2176,59 +2505,62 @@ module Thor::CoreExt; end
2176
2505
  # hash['foo'] #=> 'bar'
2177
2506
  # hash.foo? #=> true
2178
2507
  #
2179
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:11
2508
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#11
2180
2509
  class Thor::CoreExt::HashWithIndifferentAccess < ::Hash
2181
2510
  # @return [HashWithIndifferentAccess] a new instance of HashWithIndifferentAccess
2182
2511
  #
2183
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:12
2512
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#12
2184
2513
  def initialize(hash = T.unsafe(nil)); end
2185
2514
 
2186
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:19
2515
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#19
2187
2516
  def [](key); end
2188
2517
 
2189
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:23
2518
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#23
2190
2519
  def []=(key, value); end
2191
2520
 
2192
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:27
2521
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#27
2193
2522
  def delete(key); end
2194
2523
 
2195
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:31
2524
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#31
2196
2525
  def except(*keys); end
2197
2526
 
2198
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:37
2527
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#37
2199
2528
  def fetch(key, *args); end
2200
2529
 
2201
2530
  # @return [Boolean]
2202
2531
  #
2203
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:41
2532
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#45
2204
2533
  def key?(key); end
2205
2534
 
2206
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:49
2535
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#53
2207
2536
  def merge(other); end
2208
2537
 
2209
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:53
2538
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#57
2210
2539
  def merge!(other); end
2211
2540
 
2212
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:68
2541
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#72
2213
2542
  def replace(other_hash); end
2214
2543
 
2215
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:60
2544
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#64
2216
2545
  def reverse_merge(other); end
2217
2546
 
2218
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:64
2547
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#68
2219
2548
  def reverse_merge!(other_hash); end
2220
2549
 
2550
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#41
2551
+ def slice(*keys); end
2552
+
2221
2553
  # Convert to a Hash with String keys.
2222
2554
  #
2223
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:73
2555
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#77
2224
2556
  def to_hash; end
2225
2557
 
2226
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:45
2558
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#49
2227
2559
  def values_at(*indices); end
2228
2560
 
2229
2561
  protected
2230
2562
 
2231
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:79
2563
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#83
2232
2564
  def convert_key(key); end
2233
2565
 
2234
2566
  # Magic predicates. For instance:
@@ -2237,27 +2569,33 @@ class Thor::CoreExt::HashWithIndifferentAccess < ::Hash
2237
2569
  # options.shebang # => "/usr/lib/local/ruby"
2238
2570
  # options.test_framework?(:rspec) # => options[:test_framework] == :rspec
2239
2571
  #
2240
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:89
2572
+ # source://thor//lib/thor/core_ext/hash_with_indifferent_access.rb#93
2241
2573
  def method_missing(method, *args); end
2242
2574
  end
2243
2575
 
2244
- # source://thor-1.2.1/lib/thor/error.rb:2
2245
- Thor::Correctable = DidYouMean::Correctable
2576
+ # source://thor//lib/thor/error.rb#3
2577
+ module Thor::Correctable
2578
+ # source://thor//lib/thor/error.rb#8
2579
+ def corrections; end
2580
+
2581
+ # source://thor//lib/thor/error.rb#4
2582
+ def to_s; end
2583
+ end
2246
2584
 
2247
2585
  # A dynamic command that handles method missing scenarios.
2248
2586
  #
2249
- # source://thor-1.2.1/lib/thor/command.rb:128
2587
+ # source://thor//lib/thor/command.rb#137
2250
2588
  class Thor::DynamicCommand < ::Thor::Command
2251
2589
  # @return [DynamicCommand] a new instance of DynamicCommand
2252
2590
  #
2253
- # source://thor-1.2.1/lib/thor/command.rb:129
2591
+ # source://thor//lib/thor/command.rb#138
2254
2592
  def initialize(name, options = T.unsafe(nil)); end
2255
2593
 
2256
- # source://thor-1.2.1/lib/thor/command.rb:133
2594
+ # source://thor//lib/thor/command.rb#142
2257
2595
  def run(instance, args = T.unsafe(nil)); end
2258
2596
  end
2259
2597
 
2260
- # source://thor-1.2.1/lib/thor/command.rb:141
2598
+ # source://thor//lib/thor/command.rb#150
2261
2599
  Thor::DynamicTask = Thor::DynamicCommand
2262
2600
 
2263
2601
  # Thor::Error is raised when it's caused by wrong usage of thor classes. Those
@@ -2267,15 +2605,18 @@ Thor::DynamicTask = Thor::DynamicCommand
2267
2605
  # overwrites a thor keyword, SHOULD NOT raise a Thor::Error. This way, we
2268
2606
  # ensure that developer errors are shown with full backtrace.
2269
2607
  #
2270
- # source://thor-1.2.1/lib/thor/error.rb:23
2608
+ # source://thor//lib/thor/error.rb#20
2271
2609
  class Thor::Error < ::StandardError; end
2272
2610
 
2611
+ # source://thor//lib/thor/error.rb#101
2612
+ class Thor::ExclusiveArgumentError < ::Thor::InvocationError; end
2613
+
2273
2614
  # Thor has a special class called Thor::Group. The main difference to Thor class
2274
2615
  # is that it invokes all commands at once. It also include some methods that allows
2275
2616
  # invocations to be done at the class method, which are not available to Thor
2276
2617
  # commands.
2277
2618
  #
2278
- # source://thor-1.2.1/lib/thor/group.rb:7
2619
+ # source://thor//lib/thor/group.rb#7
2279
2620
  class Thor::Group
2280
2621
  include ::Thor::Base
2281
2622
  include ::Thor::Invocation
@@ -2288,14 +2629,14 @@ class Thor::Group
2288
2629
  # Shortcut to invoke with padding and block handling. Use internally by
2289
2630
  # invoke and invoke_from_option class methods.
2290
2631
  #
2291
- # source://thor-1.2.1/lib/thor/group.rb:265
2632
+ # source://thor//lib/thor/group.rb#265
2292
2633
  def _invoke_for_class_method(klass, command = T.unsafe(nil), *args, &block); end
2293
2634
 
2294
2635
  class << self
2295
2636
  # Overwrite class options help to allow invoked generators options to be
2296
2637
  # shown recursively when invoking a generator.
2297
2638
  #
2298
- # source://thor-1.2.1/lib/thor/group.rb:161
2639
+ # source://thor//lib/thor/group.rb#161
2299
2640
  def class_options_help(shell, groups = T.unsafe(nil)); end
2300
2641
 
2301
2642
  # The description for this Thor::Group. If none is provided, but a source root
@@ -2305,19 +2646,19 @@ class Thor::Group
2305
2646
  # ==== Parameters
2306
2647
  # description<String>:: The description for this Thor::Group.
2307
2648
  #
2308
- # source://thor-1.2.1/lib/thor/group.rb:16
2649
+ # source://thor//lib/thor/group.rb#16
2309
2650
  def desc(description = T.unsafe(nil)); end
2310
2651
 
2311
2652
  # Get invocations array and merge options from invocations. Those
2312
2653
  # options are added to group_options hash. Options that already exists
2313
2654
  # in base_options are not added twice.
2314
2655
  #
2315
- # source://thor-1.2.1/lib/thor/group.rb:172
2656
+ # source://thor//lib/thor/group.rb#172
2316
2657
  def get_options_from_invocations(group_options, base_options); end
2317
2658
 
2318
2659
  # @raise [error]
2319
2660
  #
2320
- # source://thor-1.2.1/lib/thor/group.rb:207
2661
+ # source://thor//lib/thor/group.rb#207
2321
2662
  def handle_argument_error(command, error, _args, arity); end
2322
2663
 
2323
2664
  # Prints help information.
@@ -2325,17 +2666,17 @@ class Thor::Group
2325
2666
  # ==== Options
2326
2667
  # short:: When true, shows only usage.
2327
2668
  #
2328
- # source://thor-1.2.1/lib/thor/group.rb:29
2669
+ # source://thor//lib/thor/group.rb#29
2329
2670
  def help(shell); end
2330
2671
 
2331
2672
  # Stores invocation blocks used on invoke_from_option.
2332
2673
  #
2333
- # source://thor-1.2.1/lib/thor/group.rb:45
2674
+ # source://thor//lib/thor/group.rb#45
2334
2675
  def invocation_blocks; end
2335
2676
 
2336
2677
  # Stores invocations for this class merging with superclass values.
2337
2678
  #
2338
- # source://thor-1.2.1/lib/thor/group.rb:39
2679
+ # source://thor//lib/thor/group.rb#39
2339
2680
  def invocations; end
2340
2681
 
2341
2682
  # Invoke the given namespace or class given. It adds an instance
@@ -2345,7 +2686,7 @@ class Thor::Group
2345
2686
  # The namespace/class given will have its options showed on the help
2346
2687
  # usage. Check invoke_from_option for more information.
2347
2688
  #
2348
- # source://thor-1.2.1/lib/thor/group.rb:56
2689
+ # source://thor//lib/thor/group.rb#56
2349
2690
  def invoke(*names, &block); end
2350
2691
 
2351
2692
  # Invoke a thor class based on the value supplied by the user to the
@@ -2378,17 +2719,17 @@ class Thor::Group
2378
2719
  # invoked. The block receives two parameters, an instance of the current
2379
2720
  # class and the klass to be invoked.
2380
2721
  #
2381
- # source://thor-1.2.1/lib/thor/group.rb:110
2722
+ # source://thor//lib/thor/group.rb#110
2382
2723
  def invoke_from_option(*names, &block); end
2383
2724
 
2384
2725
  # Returns commands ready to be printed.
2385
2726
  #
2386
- # source://thor-1.2.1/lib/thor/group.rb:199
2727
+ # source://thor//lib/thor/group.rb#199
2387
2728
  def printable_commands(*_arg0); end
2388
2729
 
2389
2730
  # Returns commands ready to be printed.
2390
2731
  #
2391
- # source://thor-1.2.1/lib/thor/group.rb:199
2732
+ # source://thor//lib/thor/group.rb#199
2392
2733
  def printable_tasks(*_arg0); end
2393
2734
 
2394
2735
  # Remove a previously added invocation.
@@ -2397,7 +2738,7 @@ class Thor::Group
2397
2738
  #
2398
2739
  # remove_invocation :test_framework
2399
2740
  #
2400
- # source://thor-1.2.1/lib/thor/group.rb:149
2741
+ # source://thor//lib/thor/group.rb#149
2401
2742
  def remove_invocation(*names); end
2402
2743
 
2403
2744
  protected
@@ -2405,67 +2746,67 @@ class Thor::Group
2405
2746
  # The banner for this class. You can customize it if you are invoking the
2406
2747
  # thor class by another ways which is not the Thor::Runner.
2407
2748
  #
2408
- # source://thor-1.2.1/lib/thor/group.rb:238
2749
+ # source://thor//lib/thor/group.rb#238
2409
2750
  def banner; end
2410
2751
 
2411
- # source://thor-1.2.1/lib/thor/group.rb:248
2752
+ # source://thor//lib/thor/group.rb#248
2412
2753
  def baseclass; end
2413
2754
 
2414
- # source://thor-1.2.1/lib/thor/group.rb:252
2755
+ # source://thor//lib/thor/group.rb#252
2415
2756
  def create_command(meth); end
2416
2757
 
2417
- # source://thor-1.2.1/lib/thor/group.rb:252
2758
+ # source://thor//lib/thor/group.rb#252
2418
2759
  def create_task(meth); end
2419
2760
 
2420
2761
  # The method responsible for dispatching given the args.
2421
2762
  #
2422
2763
  # @yield [instance]
2423
2764
  #
2424
- # source://thor-1.2.1/lib/thor/group.rb:217
2765
+ # source://thor//lib/thor/group.rb#217
2425
2766
  def dispatch(command, given_args, given_opts, config); end
2426
2767
 
2427
2768
  # Represents the whole class as a command.
2428
2769
  #
2429
- # source://thor-1.2.1/lib/thor/group.rb:243
2770
+ # source://thor//lib/thor/group.rb#243
2430
2771
  def self_command; end
2431
2772
 
2432
2773
  # Represents the whole class as a command.
2433
2774
  #
2434
- # source://thor-1.2.1/lib/thor/group.rb:243
2775
+ # source://thor//lib/thor/group.rb#243
2435
2776
  def self_task; end
2436
2777
  end
2437
2778
  end
2438
2779
 
2439
2780
  # Shortcuts for help.
2440
2781
  #
2441
- # source://thor-1.2.1/lib/thor/base.rb:17
2782
+ # source://thor//lib/thor/base.rb#17
2442
2783
  Thor::HELP_MAPPINGS = T.let(T.unsafe(nil), Array)
2443
2784
 
2444
2785
  # A command that is hidden in help messages but still invocable.
2445
2786
  #
2446
- # source://thor-1.2.1/lib/thor/command.rb:120
2787
+ # source://thor//lib/thor/command.rb#129
2447
2788
  class Thor::HiddenCommand < ::Thor::Command
2448
2789
  # @return [Boolean]
2449
2790
  #
2450
- # source://thor-1.2.1/lib/thor/command.rb:121
2791
+ # source://thor//lib/thor/command.rb#130
2451
2792
  def hidden?; end
2452
2793
  end
2453
2794
 
2454
- # source://thor-1.2.1/lib/thor/command.rb:125
2795
+ # source://thor//lib/thor/command.rb#134
2455
2796
  Thor::HiddenTask = Thor::HiddenCommand
2456
2797
 
2457
- # source://thor-1.2.1/lib/thor/invocation.rb:2
2798
+ # source://thor//lib/thor/invocation.rb#2
2458
2799
  module Thor::Invocation
2459
2800
  mixes_in_class_methods ::Thor::Invocation::ClassMethods
2460
2801
 
2461
2802
  # Make initializer aware of invocations and the initialization args.
2462
2803
  #
2463
- # source://thor-1.2.1/lib/thor/invocation.rb:23
2804
+ # source://thor//lib/thor/invocation.rb#23
2464
2805
  def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil), &block); end
2465
2806
 
2466
2807
  # Make the current command chain accessible with in a Thor-(sub)command
2467
2808
  #
2468
- # source://thor-1.2.1/lib/thor/invocation.rb:30
2809
+ # source://thor//lib/thor/invocation.rb#30
2469
2810
  def current_command_chain; end
2470
2811
 
2471
2812
  # Receives a name and invokes it. The name can be a string (either "command" or
@@ -2536,34 +2877,34 @@ module Thor::Invocation
2536
2877
  #
2537
2878
  # invoke Rspec::RR, [], :style => :foo
2538
2879
  #
2539
- # source://thor-1.2.1/lib/thor/invocation.rb:102
2880
+ # source://thor//lib/thor/invocation.rb#102
2540
2881
  def invoke(name = T.unsafe(nil), *args); end
2541
2882
 
2542
2883
  # Invoke all commands for the current instance.
2543
2884
  #
2544
- # source://thor-1.2.1/lib/thor/invocation.rb:133
2885
+ # source://thor//lib/thor/invocation.rb#133
2545
2886
  def invoke_all; end
2546
2887
 
2547
2888
  # Invoke the given command if the given args.
2548
2889
  #
2549
- # source://thor-1.2.1/lib/thor/invocation.rb:122
2890
+ # source://thor//lib/thor/invocation.rb#122
2550
2891
  def invoke_command(command, *args); end
2551
2892
 
2552
2893
  # Invoke the given command if the given args.
2553
2894
  #
2554
- # source://thor-1.2.1/lib/thor/invocation.rb:122
2895
+ # source://thor//lib/thor/invocation.rb#122
2555
2896
  def invoke_task(command, *args); end
2556
2897
 
2557
2898
  # Invokes using shell padding.
2558
2899
  #
2559
- # source://thor-1.2.1/lib/thor/invocation.rb:138
2900
+ # source://thor//lib/thor/invocation.rb#138
2560
2901
  def invoke_with_padding(*args); end
2561
2902
 
2562
2903
  protected
2563
2904
 
2564
2905
  # Initialize klass using values stored in the @_initializer.
2565
2906
  #
2566
- # source://thor-1.2.1/lib/thor/invocation.rb:166
2907
+ # source://thor//lib/thor/invocation.rb#166
2567
2908
  def _parse_initialization_options(args, opts, config); end
2568
2909
 
2569
2910
  # This method simply retrieves the class and command to be invoked.
@@ -2571,7 +2912,7 @@ module Thor::Invocation
2571
2912
  # use the given name and return self as class. Otherwise, call
2572
2913
  # prepare_for_invocation in the current class.
2573
2914
  #
2574
- # source://thor-1.2.1/lib/thor/invocation.rb:153
2915
+ # source://thor//lib/thor/invocation.rb#153
2575
2916
  def _retrieve_class_and_command(name, sent_command = T.unsafe(nil)); end
2576
2917
 
2577
2918
  # This method simply retrieves the class and command to be invoked.
@@ -2579,255 +2920,262 @@ module Thor::Invocation
2579
2920
  # use the given name and return self as class. Otherwise, call
2580
2921
  # prepare_for_invocation in the current class.
2581
2922
  #
2582
- # source://thor-1.2.1/lib/thor/invocation.rb:153
2923
+ # source://thor//lib/thor/invocation.rb#153
2583
2924
  def _retrieve_class_and_task(name, sent_command = T.unsafe(nil)); end
2584
2925
 
2585
2926
  # Configuration values that are shared between invocations.
2586
2927
  #
2587
- # source://thor-1.2.1/lib/thor/invocation.rb:145
2928
+ # source://thor//lib/thor/invocation.rb#145
2588
2929
  def _shared_configuration; end
2589
2930
 
2590
2931
  class << self
2591
- # source://thor-1.2.1/lib/thor/invocation.rb:3
2932
+ # source://thor//lib/thor/invocation.rb#3
2592
2933
  def included(base); end
2593
2934
  end
2594
2935
  end
2595
2936
 
2596
- # source://thor-1.2.1/lib/thor/invocation.rb:8
2937
+ # source://thor//lib/thor/invocation.rb#8
2597
2938
  module Thor::Invocation::ClassMethods
2598
2939
  # This method is responsible for receiving a name and find the proper
2599
2940
  # class and command for it. The key is an optional parameter which is
2600
2941
  # available only in class methods invocations (i.e. in Thor::Group).
2601
2942
  #
2602
- # source://thor-1.2.1/lib/thor/invocation.rb:12
2943
+ # source://thor//lib/thor/invocation.rb#12
2603
2944
  def prepare_for_invocation(key, name); end
2604
2945
  end
2605
2946
 
2606
2947
  # Raised when a command was found, but not invoked properly.
2607
2948
  #
2608
- # source://thor-1.2.1/lib/thor/error.rb:65
2949
+ # source://thor//lib/thor/error.rb#62
2609
2950
  class Thor::InvocationError < ::Thor::Error; end
2610
2951
 
2611
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:2
2952
+ # source://thor//lib/thor/line_editor/basic.rb#2
2612
2953
  module Thor::LineEditor
2613
2954
  class << self
2614
- # source://thor-1.2.1/lib/thor/line_editor.rb:10
2955
+ # source://thor//lib/thor/line_editor.rb#10
2615
2956
  def best_available; end
2616
2957
 
2617
- # source://thor-1.2.1/lib/thor/line_editor.rb:6
2958
+ # source://thor//lib/thor/line_editor.rb#6
2618
2959
  def readline(prompt, options = T.unsafe(nil)); end
2619
2960
  end
2620
2961
  end
2621
2962
 
2622
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:3
2963
+ # source://thor//lib/thor/line_editor/basic.rb#3
2623
2964
  class Thor::LineEditor::Basic
2624
2965
  # @return [Basic] a new instance of Basic
2625
2966
  #
2626
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:10
2967
+ # source://thor//lib/thor/line_editor/basic.rb#10
2627
2968
  def initialize(prompt, options); end
2628
2969
 
2629
2970
  # Returns the value of attribute options.
2630
2971
  #
2631
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:4
2972
+ # source://thor//lib/thor/line_editor/basic.rb#4
2632
2973
  def options; end
2633
2974
 
2634
2975
  # Returns the value of attribute prompt.
2635
2976
  #
2636
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:4
2977
+ # source://thor//lib/thor/line_editor/basic.rb#4
2637
2978
  def prompt; end
2638
2979
 
2639
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:15
2980
+ # source://thor//lib/thor/line_editor/basic.rb#15
2640
2981
  def readline; end
2641
2982
 
2642
2983
  private
2643
2984
 
2644
2985
  # @return [Boolean]
2645
2986
  #
2646
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:32
2987
+ # source://thor//lib/thor/line_editor/basic.rb#32
2647
2988
  def echo?; end
2648
2989
 
2649
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:22
2990
+ # source://thor//lib/thor/line_editor/basic.rb#22
2650
2991
  def get_input; end
2651
2992
 
2652
2993
  class << self
2653
2994
  # @return [Boolean]
2654
2995
  #
2655
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:6
2996
+ # source://thor//lib/thor/line_editor/basic.rb#6
2656
2997
  def available?; end
2657
2998
  end
2658
2999
  end
2659
3000
 
2660
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:3
3001
+ # source://thor//lib/thor/line_editor/readline.rb#3
2661
3002
  class Thor::LineEditor::Readline < ::Thor::LineEditor::Basic
2662
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:13
3003
+ # source://thor//lib/thor/line_editor/readline.rb#13
2663
3004
  def readline; end
2664
3005
 
2665
3006
  private
2666
3007
 
2667
3008
  # @return [Boolean]
2668
3009
  #
2669
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:28
3010
+ # source://thor//lib/thor/line_editor/readline.rb#28
2670
3011
  def add_to_history?; end
2671
3012
 
2672
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:42
3013
+ # source://thor//lib/thor/line_editor/readline.rb#42
2673
3014
  def completion_options; end
2674
3015
 
2675
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:32
3016
+ # source://thor//lib/thor/line_editor/readline.rb#32
2676
3017
  def completion_proc; end
2677
3018
 
2678
3019
  # @return [Boolean]
2679
3020
  #
2680
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:46
3021
+ # source://thor//lib/thor/line_editor/readline.rb#46
2681
3022
  def use_path_completion?; end
2682
3023
 
2683
3024
  class << self
2684
3025
  # @return [Boolean]
2685
3026
  #
2686
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:4
3027
+ # source://thor//lib/thor/line_editor/readline.rb#4
2687
3028
  def available?; end
2688
3029
  end
2689
3030
  end
2690
3031
 
2691
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:50
3032
+ # source://thor//lib/thor/line_editor/readline.rb#50
2692
3033
  class Thor::LineEditor::Readline::PathCompletion
2693
3034
  # @return [PathCompletion] a new instance of PathCompletion
2694
3035
  #
2695
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:54
3036
+ # source://thor//lib/thor/line_editor/readline.rb#54
2696
3037
  def initialize(text); end
2697
3038
 
2698
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:58
3039
+ # source://thor//lib/thor/line_editor/readline.rb#58
2699
3040
  def matches; end
2700
3041
 
2701
3042
  private
2702
3043
 
2703
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:68
3044
+ # source://thor//lib/thor/line_editor/readline.rb#68
2704
3045
  def absolute_matches; end
2705
3046
 
2706
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:82
3047
+ # source://thor//lib/thor/line_editor/readline.rb#82
2707
3048
  def base_path; end
2708
3049
 
2709
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:78
3050
+ # source://thor//lib/thor/line_editor/readline.rb#78
2710
3051
  def glob_pattern; end
2711
3052
 
2712
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:64
3053
+ # source://thor//lib/thor/line_editor/readline.rb#64
2713
3054
  def relative_matches; end
2714
3055
 
2715
3056
  # Returns the value of attribute text.
2716
3057
  #
2717
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:51
3058
+ # source://thor//lib/thor/line_editor/readline.rb#51
2718
3059
  def text; end
2719
3060
  end
2720
3061
 
2721
- # source://thor-1.2.1/lib/thor/error.rb:101
3062
+ # source://thor//lib/thor/error.rb#98
2722
3063
  class Thor::MalformattedArgumentError < ::Thor::InvocationError; end
2723
3064
 
2724
- # source://thor-1.2.1/lib/thor/nested_context.rb:2
3065
+ # source://thor//lib/thor/nested_context.rb#2
2725
3066
  class Thor::NestedContext
2726
3067
  # @return [NestedContext] a new instance of NestedContext
2727
3068
  #
2728
- # source://thor-1.2.1/lib/thor/nested_context.rb:3
3069
+ # source://thor//lib/thor/nested_context.rb#3
2729
3070
  def initialize; end
2730
3071
 
2731
- # source://thor-1.2.1/lib/thor/nested_context.rb:7
3072
+ # source://thor//lib/thor/nested_context.rb#7
2732
3073
  def enter; end
2733
3074
 
2734
3075
  # @return [Boolean]
2735
3076
  #
2736
- # source://thor-1.2.1/lib/thor/nested_context.rb:15
3077
+ # source://thor//lib/thor/nested_context.rb#15
2737
3078
  def entered?; end
2738
3079
 
2739
3080
  private
2740
3081
 
2741
- # source://thor-1.2.1/lib/thor/nested_context.rb:25
3082
+ # source://thor//lib/thor/nested_context.rb#25
2742
3083
  def pop; end
2743
3084
 
2744
- # source://thor-1.2.1/lib/thor/nested_context.rb:21
3085
+ # source://thor//lib/thor/nested_context.rb#21
2745
3086
  def push; end
2746
3087
  end
2747
3088
 
2748
- # source://thor-1.2.1/lib/thor/error.rb:8
2749
- class Thor::NoKwargSpellChecker < ::DidYouMean::SpellChecker
2750
- # source://thor-1.2.1/lib/thor/error.rb:9
2751
- def initialize(dictionary); end
2752
- end
2753
-
2754
- # source://thor-1.2.1/lib/thor/parser/option.rb:2
3089
+ # source://thor//lib/thor/parser/option.rb#2
2755
3090
  class Thor::Option < ::Thor::Argument
2756
3091
  # @return [Option] a new instance of Option
2757
3092
  #
2758
- # source://thor-1.2.1/lib/thor/parser/option.rb:7
3093
+ # source://thor//lib/thor/parser/option.rb#7
2759
3094
  def initialize(name, options = T.unsafe(nil)); end
2760
3095
 
2761
3096
  # Returns the value of attribute aliases.
2762
3097
  #
2763
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
3098
+ # source://thor//lib/thor/parser/option.rb#3
2764
3099
  def aliases; end
2765
3100
 
2766
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
3101
+ # source://thor//lib/thor/parser/option.rb#99
3102
+ def aliases_for_usage; end
3103
+
3104
+ # source://thor//lib/thor/parser/option.rb#118
2767
3105
  def array?; end
2768
3106
 
2769
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
3107
+ # source://thor//lib/thor/parser/option.rb#118
2770
3108
  def boolean?; end
2771
3109
 
2772
3110
  # Returns the value of attribute group.
2773
3111
  #
2774
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
3112
+ # source://thor//lib/thor/parser/option.rb#3
2775
3113
  def group; end
2776
3114
 
2777
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
3115
+ # source://thor//lib/thor/parser/option.rb#118
2778
3116
  def hash?; end
2779
3117
 
2780
3118
  # Returns the value of attribute hide.
2781
3119
  #
2782
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
3120
+ # source://thor//lib/thor/parser/option.rb#3
2783
3121
  def hide; end
2784
3122
 
2785
- # source://thor-1.2.1/lib/thor/parser/option.rb:79
3123
+ # source://thor//lib/thor/parser/option.rb#79
2786
3124
  def human_name; end
2787
3125
 
2788
3126
  # Returns the value of attribute lazy_default.
2789
3127
  #
2790
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
3128
+ # source://thor//lib/thor/parser/option.rb#3
2791
3129
  def lazy_default; end
2792
3130
 
2793
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
3131
+ # source://thor//lib/thor/parser/option.rb#118
2794
3132
  def numeric?; end
2795
3133
 
2796
3134
  # Returns the value of attribute repeatable.
2797
3135
  #
2798
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
3136
+ # source://thor//lib/thor/parser/option.rb#3
2799
3137
  def repeatable; end
2800
3138
 
2801
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
3139
+ # @return [Boolean]
3140
+ #
3141
+ # source://thor//lib/thor/parser/option.rb#107
3142
+ def show_default?; end
3143
+
3144
+ # source://thor//lib/thor/parser/option.rb#118
2802
3145
  def string?; end
2803
3146
 
2804
- # source://thor-1.2.1/lib/thor/parser/option.rb:75
3147
+ # source://thor//lib/thor/parser/option.rb#75
2805
3148
  def switch_name; end
2806
3149
 
2807
- # source://thor-1.2.1/lib/thor/parser/option.rb:83
3150
+ # source://thor//lib/thor/parser/option.rb#83
2808
3151
  def usage(padding = T.unsafe(nil)); end
2809
3152
 
2810
3153
  protected
2811
3154
 
2812
- # source://thor-1.2.1/lib/thor/parser/option.rb:155
3155
+ # source://thor//lib/thor/parser/option.rb#168
2813
3156
  def dasherize(str); end
2814
3157
 
2815
3158
  # @return [Boolean]
2816
3159
  #
2817
- # source://thor-1.2.1/lib/thor/parser/option.rb:147
3160
+ # source://thor//lib/thor/parser/option.rb#160
2818
3161
  def dasherized?; end
2819
3162
 
2820
- # source://thor-1.2.1/lib/thor/parser/option.rb:151
3163
+ # source://thor//lib/thor/parser/option.rb#164
2821
3164
  def undasherize(str); end
2822
3165
 
2823
3166
  # @raise [ArgumentError]
2824
3167
  #
2825
- # source://thor-1.2.1/lib/thor/parser/option.rb:113
3168
+ # source://thor//lib/thor/parser/option.rb#126
2826
3169
  def validate!; end
2827
3170
 
2828
- # source://thor-1.2.1/lib/thor/parser/option.rb:118
3171
+ # source://thor//lib/thor/parser/option.rb#131
2829
3172
  def validate_default_type!; end
2830
3173
 
3174
+ private
3175
+
3176
+ # source://thor//lib/thor/parser/option.rb#174
3177
+ def normalize_aliases(aliases); end
3178
+
2831
3179
  class << self
2832
3180
  # This parse quick options given as method_options. It makes several
2833
3181
  # assumptions, but you can be more specific using the option method.
@@ -2856,15 +3204,15 @@ class Thor::Option < ::Thor::Argument
2856
3204
  #
2857
3205
  # By default all options are optional, unless :required is given.
2858
3206
  #
2859
- # source://thor-1.2.1/lib/thor/parser/option.rb:45
3207
+ # source://thor//lib/thor/parser/option.rb#45
2860
3208
  def parse(key, value); end
2861
3209
  end
2862
3210
  end
2863
3211
 
2864
- # source://thor-1.2.1/lib/thor/parser/option.rb:5
3212
+ # source://thor//lib/thor/parser/option.rb#5
2865
3213
  Thor::Option::VALID_TYPES = T.let(T.unsafe(nil), Array)
2866
3214
 
2867
- # source://thor-1.2.1/lib/thor/parser/options.rb:2
3215
+ # source://thor//lib/thor/parser/options.rb#2
2868
3216
  class Thor::Options < ::Thor::Arguments
2869
3217
  # Takes a hash of Thor::Option and a hash with defaults.
2870
3218
  #
@@ -2873,32 +3221,38 @@ class Thor::Options < ::Thor::Arguments
2873
3221
  #
2874
3222
  # @return [Options] a new instance of Options
2875
3223
  #
2876
- # source://thor-1.2.1/lib/thor/parser/options.rb:32
2877
- def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil)); end
3224
+ # source://thor//lib/thor/parser/options.rb#32
3225
+ def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil), relations = T.unsafe(nil)); end
3226
+
3227
+ # source://thor//lib/thor/parser/options.rb#156
3228
+ def check_at_least_one!; end
3229
+
3230
+ # source://thor//lib/thor/parser/options.rb#144
3231
+ def check_exclusive!; end
2878
3232
 
2879
3233
  # @raise [UnknownArgumentError]
2880
3234
  #
2881
- # source://thor-1.2.1/lib/thor/parser/options.rb:141
3235
+ # source://thor//lib/thor/parser/options.rb#168
2882
3236
  def check_unknown!; end
2883
3237
 
2884
- # source://thor-1.2.1/lib/thor/parser/options.rb:88
3238
+ # source://thor//lib/thor/parser/options.rb#89
2885
3239
  def parse(args); end
2886
3240
 
2887
- # source://thor-1.2.1/lib/thor/parser/options.rb:64
3241
+ # source://thor//lib/thor/parser/options.rb#65
2888
3242
  def peek; end
2889
3243
 
2890
- # source://thor-1.2.1/lib/thor/parser/options.rb:60
3244
+ # source://thor//lib/thor/parser/options.rb#61
2891
3245
  def remaining; end
2892
3246
 
2893
- # source://thor-1.2.1/lib/thor/parser/options.rb:78
3247
+ # source://thor//lib/thor/parser/options.rb#79
2894
3248
  def shift; end
2895
3249
 
2896
- # source://thor-1.2.1/lib/thor/parser/options.rb:83
3250
+ # source://thor//lib/thor/parser/options.rb#84
2897
3251
  def unshift(arg, is_value: T.unsafe(nil)); end
2898
3252
 
2899
3253
  protected
2900
3254
 
2901
- # source://thor-1.2.1/lib/thor/parser/options.rb:151
3255
+ # source://thor//lib/thor/parser/options.rb#189
2902
3256
  def assign_result!(option, result); end
2903
3257
 
2904
3258
  # Check if the current value in peek is a registered switch.
@@ -2908,73 +3262,79 @@ class Thor::Options < ::Thor::Arguments
2908
3262
  #
2909
3263
  # @return [Boolean]
2910
3264
  #
2911
- # source://thor-1.2.1/lib/thor/parser/options.rb:165
3265
+ # source://thor//lib/thor/parser/options.rb#203
2912
3266
  def current_is_switch?; end
2913
3267
 
2914
3268
  # @return [Boolean]
2915
3269
  #
2916
- # source://thor-1.2.1/lib/thor/parser/options.rb:177
3270
+ # source://thor//lib/thor/parser/options.rb#215
2917
3271
  def current_is_switch_formatted?; end
2918
3272
 
2919
3273
  # @return [Boolean]
2920
3274
  #
2921
- # source://thor-1.2.1/lib/thor/parser/options.rb:187
3275
+ # source://thor//lib/thor/parser/options.rb#225
2922
3276
  def current_is_value?; end
2923
3277
 
3278
+ # Option names changes to swith name or human name
3279
+ #
3280
+ # source://thor//lib/thor/parser/options.rb#179
3281
+ def names_to_switch_names(names = T.unsafe(nil)); end
3282
+
2924
3283
  # Check if the given argument is actually a shortcut.
2925
3284
  #
2926
- # source://thor-1.2.1/lib/thor/parser/options.rb:206
3285
+ # source://thor//lib/thor/parser/options.rb#244
2927
3286
  def normalize_switch(arg); end
2928
3287
 
2929
- # Parse boolean values which can be given as --foo=true, --foo or --no-foo.
3288
+ # Parse boolean values which can be given as --foo=true or --foo for true values, or
3289
+ # --foo=false, --no-foo or --skip-foo for false values.
2930
3290
  #
2931
- # source://thor-1.2.1/lib/thor/parser/options.rb:217
3291
+ # source://thor//lib/thor/parser/options.rb#256
2932
3292
  def parse_boolean(switch); end
2933
3293
 
2934
3294
  # Parse the value at the peek analyzing if it requires an input or not.
2935
3295
  #
2936
- # source://thor-1.2.1/lib/thor/parser/options.rb:235
3296
+ # source://thor//lib/thor/parser/options.rb#274
2937
3297
  def parse_peek(switch, option); end
2938
3298
 
2939
3299
  # @return [Boolean]
2940
3300
  #
2941
- # source://thor-1.2.1/lib/thor/parser/options.rb:210
3301
+ # source://thor//lib/thor/parser/options.rb#248
2942
3302
  def parsing_options?; end
2943
3303
 
2944
3304
  # @return [Boolean]
2945
3305
  #
2946
- # source://thor-1.2.1/lib/thor/parser/options.rb:192
3306
+ # source://thor//lib/thor/parser/options.rb#230
2947
3307
  def switch?(arg); end
2948
3308
 
2949
- # source://thor-1.2.1/lib/thor/parser/options.rb:196
3309
+ # source://thor//lib/thor/parser/options.rb#234
2950
3310
  def switch_option(arg); end
2951
3311
 
2952
3312
  class << self
2953
3313
  # Receives a hash and makes it switches.
2954
3314
  #
2955
- # source://thor-1.2.1/lib/thor/parser/options.rb:11
3315
+ # source://thor//lib/thor/parser/options.rb#11
2956
3316
  def to_switches(options); end
2957
3317
  end
2958
3318
  end
2959
3319
 
2960
- # source://thor-1.2.1/lib/thor/parser/options.rb:5
3320
+ # source://thor//lib/thor/parser/options.rb#5
2961
3321
  Thor::Options::EQ_RE = T.let(T.unsafe(nil), Regexp)
2962
3322
 
2963
- # source://thor-1.2.1/lib/thor/parser/options.rb:3
3323
+ # source://thor//lib/thor/parser/options.rb#3
2964
3324
  Thor::Options::LONG_RE = T.let(T.unsafe(nil), Regexp)
2965
3325
 
2966
- # source://thor-1.2.1/lib/thor/parser/options.rb:8
3326
+ # source://thor//lib/thor/parser/options.rb#8
2967
3327
  Thor::Options::OPTS_END = T.let(T.unsafe(nil), String)
2968
3328
 
2969
- # source://thor-1.2.1/lib/thor/parser/options.rb:7
3329
+ # source://thor//lib/thor/parser/options.rb#7
2970
3330
  Thor::Options::SHORT_NUM = T.let(T.unsafe(nil), Regexp)
2971
3331
 
2972
- # source://thor-1.2.1/lib/thor/parser/options.rb:4
3332
+ # source://thor//lib/thor/parser/options.rb#4
2973
3333
  Thor::Options::SHORT_RE = T.let(T.unsafe(nil), Regexp)
2974
3334
 
2975
3335
  # Allow either -x -v or -xv style for single char args
2976
3336
  #
2977
- # source://thor-1.2.1/lib/thor/parser/options.rb:6
3337
+ # source://thor//lib/thor/parser/options.rb#6
2978
3338
  Thor::Options::SHORT_SQ_RE = T.let(T.unsafe(nil), Regexp)
2979
3339
 
2980
3340
  # Adds a compatibility layer to your Thor classes which allows you to use
@@ -2992,7 +3352,7 @@ Thor::Options::SHORT_SQ_RE = T.let(T.unsafe(nil), Regexp)
2992
3352
  # end
2993
3353
  # end
2994
3354
  #
2995
- # source://thor-1.2.1/lib/thor/rake_compat.rb:20
3355
+ # source://thor//lib/thor/rake_compat.rb#20
2996
3356
  module Thor::RakeCompat
2997
3357
  include ::FileUtils::StreamUtils_
2998
3358
  include ::FileUtils
@@ -3002,21 +3362,21 @@ module Thor::RakeCompat
3002
3362
  class << self
3003
3363
  # @private
3004
3364
  #
3005
- # source://thor-1.2.1/lib/thor/rake_compat.rb:27
3365
+ # source://thor//lib/thor/rake_compat.rb#27
3006
3366
  def included(base); end
3007
3367
 
3008
- # source://thor-1.2.1/lib/thor/rake_compat.rb:23
3368
+ # source://thor//lib/thor/rake_compat.rb#23
3009
3369
  def rake_classes; end
3010
3370
  end
3011
3371
  end
3012
3372
 
3013
- # source://thor-1.2.1/lib/thor/error.rb:98
3373
+ # source://thor//lib/thor/error.rb#95
3014
3374
  class Thor::RequiredArgumentMissingError < ::Thor::InvocationError; end
3015
3375
 
3016
- # source://thor-1.2.1/lib/thor/util.rb:4
3376
+ # source://thor//lib/thor/util.rb#4
3017
3377
  module Thor::Sandbox; end
3018
3378
 
3019
- # source://thor-1.2.1/lib/thor/shell.rb:23
3379
+ # source://thor//lib/thor/shell.rb#23
3020
3380
  module Thor::Shell
3021
3381
  # Add shell to initialize config values.
3022
3382
  #
@@ -3031,81 +3391,81 @@ module Thor::Shell
3031
3391
  #
3032
3392
  # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new
3033
3393
  #
3034
- # source://thor-1.2.1/lib/thor/shell.rb:44
3394
+ # source://thor//lib/thor/shell.rb#44
3035
3395
  def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end
3036
3396
 
3037
- # source://thor-1.2.1/lib/thor/shell.rb:59
3397
+ # source://thor//lib/thor/shell.rb#59
3038
3398
  def ask(*args, &block); end
3039
3399
 
3040
- # source://thor-1.2.1/lib/thor/shell.rb:59
3400
+ # source://thor//lib/thor/shell.rb#59
3041
3401
  def error(*args, &block); end
3042
3402
 
3043
- # source://thor-1.2.1/lib/thor/shell.rb:59
3403
+ # source://thor//lib/thor/shell.rb#59
3044
3404
  def file_collision(*args, &block); end
3045
3405
 
3046
- # source://thor-1.2.1/lib/thor/shell.rb:59
3406
+ # source://thor//lib/thor/shell.rb#59
3047
3407
  def no?(*args, &block); end
3048
3408
 
3049
- # source://thor-1.2.1/lib/thor/shell.rb:59
3409
+ # source://thor//lib/thor/shell.rb#59
3050
3410
  def print_in_columns(*args, &block); end
3051
3411
 
3052
- # source://thor-1.2.1/lib/thor/shell.rb:59
3412
+ # source://thor//lib/thor/shell.rb#59
3053
3413
  def print_table(*args, &block); end
3054
3414
 
3055
- # source://thor-1.2.1/lib/thor/shell.rb:59
3415
+ # source://thor//lib/thor/shell.rb#59
3056
3416
  def print_wrapped(*args, &block); end
3057
3417
 
3058
- # source://thor-1.2.1/lib/thor/shell.rb:59
3418
+ # source://thor//lib/thor/shell.rb#59
3059
3419
  def say(*args, &block); end
3060
3420
 
3061
- # source://thor-1.2.1/lib/thor/shell.rb:59
3421
+ # source://thor//lib/thor/shell.rb#59
3062
3422
  def say_error(*args, &block); end
3063
3423
 
3064
- # source://thor-1.2.1/lib/thor/shell.rb:59
3424
+ # source://thor//lib/thor/shell.rb#59
3065
3425
  def say_status(*args, &block); end
3066
3426
 
3067
- # source://thor-1.2.1/lib/thor/shell.rb:59
3427
+ # source://thor//lib/thor/shell.rb#59
3068
3428
  def set_color(*args, &block); end
3069
3429
 
3070
3430
  # Holds the shell for the given Thor instance. If no shell is given,
3071
3431
  # it gets a default shell from Thor::Base.shell.
3072
3432
  #
3073
- # source://thor-1.2.1/lib/thor/shell.rb:52
3433
+ # source://thor//lib/thor/shell.rb#52
3074
3434
  def shell; end
3075
3435
 
3076
3436
  # Sets the attribute shell
3077
3437
  #
3078
3438
  # @param value the value to set the attribute shell to.
3079
3439
  #
3080
- # source://thor-1.2.1/lib/thor/shell.rb:25
3440
+ # source://thor//lib/thor/shell.rb#25
3081
3441
  def shell=(_arg0); end
3082
3442
 
3083
- # source://thor-1.2.1/lib/thor/shell.rb:59
3443
+ # source://thor//lib/thor/shell.rb#59
3084
3444
  def terminal_width(*args, &block); end
3085
3445
 
3086
3446
  # Yields the given block with padding.
3087
3447
  #
3088
- # source://thor-1.2.1/lib/thor/shell.rb:66
3448
+ # source://thor//lib/thor/shell.rb#66
3089
3449
  def with_padding; end
3090
3450
 
3091
- # source://thor-1.2.1/lib/thor/shell.rb:59
3451
+ # source://thor//lib/thor/shell.rb#59
3092
3452
  def yes?(*args, &block); end
3093
3453
 
3094
3454
  protected
3095
3455
 
3096
3456
  # Allow shell to be shared between invocations.
3097
3457
  #
3098
- # source://thor-1.2.1/lib/thor/shell.rb:77
3458
+ # source://thor//lib/thor/shell.rb#77
3099
3459
  def _shared_configuration; end
3100
3460
  end
3101
3461
 
3102
- # source://thor-1.2.1/lib/thor/shell/basic.rb:3
3462
+ # source://thor//lib/thor/shell/basic.rb#7
3103
3463
  class Thor::Shell::Basic
3104
3464
  # Initialize base, mute and padding to nil.
3105
3465
  #
3106
3466
  # @return [Basic] a new instance of Basic
3107
3467
  #
3108
- # source://thor-1.2.1/lib/thor/shell/basic.rb:11
3468
+ # source://thor//lib/thor/shell/basic.rb#13
3109
3469
  def initialize; end
3110
3470
 
3111
3471
  # Asks something to the user and receives a response.
@@ -3128,29 +3488,29 @@ class Thor::Shell::Basic
3128
3488
  # Readline.
3129
3489
  #
3130
3490
  # ==== Example
3131
- # ask("What is your name?")
3491
+ # ask("What is your name?")
3132
3492
  #
3133
- # ask("What is the planet furthest from the sun?", :default => "Pluto")
3493
+ # ask("What is the planet furthest from the sun?", :default => "Neptune")
3134
3494
  #
3135
- # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
3495
+ # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
3136
3496
  #
3137
- # ask("What is your password?", :echo => false)
3497
+ # ask("What is your password?", :echo => false)
3138
3498
  #
3139
- # ask("Where should the file be saved?", :path => true)
3499
+ # ask("Where should the file be saved?", :path => true)
3140
3500
  #
3141
- # source://thor-1.2.1/lib/thor/shell/basic.rb:78
3501
+ # source://thor//lib/thor/shell/basic.rb#80
3142
3502
  def ask(statement, *args); end
3143
3503
 
3144
3504
  # Returns the value of attribute base.
3145
3505
  #
3146
- # source://thor-1.2.1/lib/thor/shell/basic.rb:6
3506
+ # source://thor//lib/thor/shell/basic.rb#8
3147
3507
  def base; end
3148
3508
 
3149
3509
  # Sets the attribute base
3150
3510
  #
3151
3511
  # @param value the value to set the attribute base to.
3152
3512
  #
3153
- # source://thor-1.2.1/lib/thor/shell/basic.rb:6
3513
+ # source://thor//lib/thor/shell/basic.rb#8
3154
3514
  def base=(_arg0); end
3155
3515
 
3156
3516
  # Called if something goes wrong during the execution. This is used by Thor
@@ -3158,7 +3518,7 @@ class Thor::Shell::Basic
3158
3518
  # wrong, you can always raise an exception. If you raise a Thor::Error, it
3159
3519
  # will be rescued and wrapped in the method below.
3160
3520
  #
3161
- # source://thor-1.2.1/lib/thor/shell/basic.rb:342
3521
+ # source://thor//lib/thor/shell/basic.rb#251
3162
3522
  def error(statement); end
3163
3523
 
3164
3524
  # Deals with file collision and returns true if the file should be
@@ -3169,42 +3529,42 @@ class Thor::Shell::Basic
3169
3529
  # destination<String>:: the destination file to solve conflicts
3170
3530
  # block<Proc>:: an optional block that returns the value to be used in diff and merge
3171
3531
  #
3172
- # source://thor-1.2.1/lib/thor/shell/basic.rb:285
3532
+ # source://thor//lib/thor/shell/basic.rb#207
3173
3533
  def file_collision(destination); end
3174
3534
 
3175
3535
  # Sets the output padding while executing a block and resets it.
3176
3536
  #
3177
- # source://thor-1.2.1/lib/thor/shell/basic.rb:41
3537
+ # source://thor//lib/thor/shell/basic.rb#43
3178
3538
  def indent(count = T.unsafe(nil)); end
3179
3539
 
3180
3540
  # Mute everything that's inside given block
3181
3541
  #
3182
- # source://thor-1.2.1/lib/thor/shell/basic.rb:20
3542
+ # source://thor//lib/thor/shell/basic.rb#22
3183
3543
  def mute; end
3184
3544
 
3185
3545
  # Check if base is muted
3186
3546
  #
3187
3547
  # @return [Boolean]
3188
3548
  #
3189
- # source://thor-1.2.1/lib/thor/shell/basic.rb:29
3549
+ # source://thor//lib/thor/shell/basic.rb#31
3190
3550
  def mute?; end
3191
3551
 
3192
- # Make a question the to user and returns true if the user replies "n" or
3552
+ # Asks the user a question and returns true if the user replies "n" or
3193
3553
  # "no".
3194
3554
  #
3195
3555
  # @return [Boolean]
3196
3556
  #
3197
- # source://thor-1.2.1/lib/thor/shell/basic.rb:154
3557
+ # source://thor//lib/thor/shell/basic.rb#156
3198
3558
  def no?(statement, color = T.unsafe(nil)); end
3199
3559
 
3200
3560
  # Returns the value of attribute padding.
3201
3561
  #
3202
- # source://thor-1.2.1/lib/thor/shell/basic.rb:7
3562
+ # source://thor//lib/thor/shell/basic.rb#9
3203
3563
  def padding; end
3204
3564
 
3205
3565
  # Sets the output padding, not allowing less than zero values.
3206
3566
  #
3207
- # source://thor-1.2.1/lib/thor/shell/basic.rb:35
3567
+ # source://thor//lib/thor/shell/basic.rb#37
3208
3568
  def padding=(value); end
3209
3569
 
3210
3570
  # Prints values in columns
@@ -3212,7 +3572,7 @@ class Thor::Shell::Basic
3212
3572
  # ==== Parameters
3213
3573
  # Array[String, String, ...]
3214
3574
  #
3215
- # source://thor-1.2.1/lib/thor/shell/basic.rb:163
3575
+ # source://thor//lib/thor/shell/basic.rb#165
3216
3576
  def print_in_columns(array); end
3217
3577
 
3218
3578
  # Prints a table.
@@ -3223,8 +3583,9 @@ class Thor::Shell::Basic
3223
3583
  # ==== Options
3224
3584
  # indent<Integer>:: Indent the first column by indent value.
3225
3585
  # colwidth<Integer>:: Force the first column to colwidth spaces wide.
3586
+ # borders<Boolean>:: Adds ascii borders.
3226
3587
  #
3227
- # source://thor-1.2.1/lib/thor/shell/basic.rb:185
3588
+ # source://thor//lib/thor/shell/basic.rb#180
3228
3589
  def print_table(array, options = T.unsafe(nil)); end
3229
3590
 
3230
3591
  # Prints a long string, word-wrapping the text to the current width of the
@@ -3236,7 +3597,7 @@ class Thor::Shell::Basic
3236
3597
  # ==== Options
3237
3598
  # indent<Integer>:: Indent each line of the printed paragraph by indent value.
3238
3599
  #
3239
- # source://thor-1.2.1/lib/thor/shell/basic.rb:247
3600
+ # source://thor//lib/thor/shell/basic.rb#194
3240
3601
  def print_wrapped(message, options = T.unsafe(nil)); end
3241
3602
 
3242
3603
  # Say (print) something to the user. If the sentence ends with a whitespace
@@ -3244,9 +3605,9 @@ class Thor::Shell::Basic
3244
3605
  # are passed straight to puts (behavior got from Highline).
3245
3606
  #
3246
3607
  # ==== Example
3247
- # say("I know you knew that.")
3608
+ # say("I know you knew that.")
3248
3609
  #
3249
- # source://thor-1.2.1/lib/thor/shell/basic.rb:96
3610
+ # source://thor//lib/thor/shell/basic.rb#98
3250
3611
  def say(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
3251
3612
 
3252
3613
  # Say (print) an error to the user. If the sentence ends with a whitespace
@@ -3254,9 +3615,9 @@ class Thor::Shell::Basic
3254
3615
  # are passed straight to puts (behavior got from Highline).
3255
3616
  #
3256
3617
  # ==== Example
3257
- # say_error("error: something went wrong")
3618
+ # say_error("error: something went wrong")
3258
3619
  #
3259
- # source://thor-1.2.1/lib/thor/shell/basic.rb:113
3620
+ # source://thor//lib/thor/shell/basic.rb#115
3260
3621
  def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
3261
3622
 
3262
3623
  # Say a status with the given color and appends the message. Since this
@@ -3264,110 +3625,89 @@ class Thor::Shell::Basic
3264
3625
  # in log_status, avoiding the message from being shown. If a Symbol is
3265
3626
  # given in log_status, it's used as the color.
3266
3627
  #
3267
- # source://thor-1.2.1/lib/thor/shell/basic.rb:128
3628
+ # source://thor//lib/thor/shell/basic.rb#130
3268
3629
  def say_status(status, message, log_status = T.unsafe(nil)); end
3269
3630
 
3270
3631
  # Apply color to the given string with optional bold. Disabled in the
3271
3632
  # Thor::Shell::Basic class.
3272
3633
  #
3273
- # source://thor-1.2.1/lib/thor/shell/basic.rb:349
3634
+ # source://thor//lib/thor/shell/basic.rb#258
3274
3635
  def set_color(string, *_arg1); end
3275
3636
 
3276
- # source://thor-1.2.1/lib/thor/shell/basic.rb:326
3277
- def terminal_width; end
3278
-
3279
- # Make a question the to user and returns true if the user replies "y" or
3637
+ # Asks the user a question and returns true if the user replies "y" or
3280
3638
  # "yes".
3281
3639
  #
3282
3640
  # @return [Boolean]
3283
3641
  #
3284
- # source://thor-1.2.1/lib/thor/shell/basic.rb:147
3642
+ # source://thor//lib/thor/shell/basic.rb#149
3285
3643
  def yes?(statement, color = T.unsafe(nil)); end
3286
3644
 
3287
3645
  protected
3288
3646
 
3289
- # source://thor-1.2.1/lib/thor/shell/basic.rb:486
3647
+ # source://thor//lib/thor/shell/basic.rb#362
3290
3648
  def answer_match(possibilities, answer, case_insensitive); end
3291
3649
 
3292
- # source://thor-1.2.1/lib/thor/shell/basic.rb:443
3293
- def as_unicode; end
3294
-
3295
- # source://thor-1.2.1/lib/thor/shell/basic.rb:473
3650
+ # source://thor//lib/thor/shell/basic.rb#349
3296
3651
  def ask_filtered(statement, color, options); end
3297
3652
 
3298
- # source://thor-1.2.1/lib/thor/shell/basic.rb:456
3653
+ # source://thor//lib/thor/shell/basic.rb#332
3299
3654
  def ask_simply(statement, color, options); end
3300
3655
 
3301
3656
  # @return [Boolean]
3302
3657
  #
3303
- # source://thor-1.2.1/lib/thor/shell/basic.rb:360
3658
+ # source://thor//lib/thor/shell/basic.rb#269
3304
3659
  def can_display_colors?; end
3305
3660
 
3306
- # Calculate the dynamic width of the terminal
3307
- #
3308
- # source://thor-1.2.1/lib/thor/shell/basic.rb:415
3309
- def dynamic_width; end
3310
-
3311
- # source://thor-1.2.1/lib/thor/shell/basic.rb:419
3312
- def dynamic_width_stty; end
3313
-
3314
- # source://thor-1.2.1/lib/thor/shell/basic.rb:423
3315
- def dynamic_width_tput; end
3661
+ # source://thor//lib/thor/shell/basic.rb#296
3662
+ def file_collision_help(block_given); end
3316
3663
 
3317
- # source://thor-1.2.1/lib/thor/shell/basic.rb:387
3318
- def file_collision_help; end
3319
-
3320
- # source://thor-1.2.1/lib/thor/shell/basic.rb:507
3664
+ # source://thor//lib/thor/shell/basic.rb#383
3321
3665
  def git_merge_tool; end
3322
3666
 
3323
3667
  # @return [Boolean]
3324
3668
  #
3325
- # source://thor-1.2.1/lib/thor/shell/basic.rb:377
3669
+ # source://thor//lib/thor/shell/basic.rb#286
3326
3670
  def is?(value); end
3327
3671
 
3328
- # source://thor-1.2.1/lib/thor/shell/basic.rb:364
3672
+ # source://thor//lib/thor/shell/basic.rb#273
3329
3673
  def lookup_color(color); end
3330
3674
 
3331
- # source://thor-1.2.1/lib/thor/shell/basic.rb:494
3675
+ # source://thor//lib/thor/shell/basic.rb#370
3332
3676
  def merge(destination, content); end
3333
3677
 
3334
- # source://thor-1.2.1/lib/thor/shell/basic.rb:503
3678
+ # source://thor//lib/thor/shell/basic.rb#379
3335
3679
  def merge_tool; end
3336
3680
 
3337
- # source://thor-1.2.1/lib/thor/shell/basic.rb:355
3681
+ # source://thor//lib/thor/shell/basic.rb#264
3338
3682
  def prepare_message(message, *color); end
3339
3683
 
3340
3684
  # @return [Boolean]
3341
3685
  #
3342
- # source://thor-1.2.1/lib/thor/shell/basic.rb:410
3686
+ # source://thor//lib/thor/shell/basic.rb#324
3343
3687
  def quiet?; end
3344
3688
 
3345
- # source://thor-1.2.1/lib/thor/shell/basic.rb:399
3689
+ # source://thor//lib/thor/shell/basic.rb#313
3346
3690
  def show_diff(destination, content); end
3347
3691
 
3348
- # source://thor-1.2.1/lib/thor/shell/basic.rb:373
3692
+ # source://thor//lib/thor/shell/basic.rb#282
3349
3693
  def stderr; end
3350
3694
 
3351
- # source://thor-1.2.1/lib/thor/shell/basic.rb:369
3695
+ # source://thor//lib/thor/shell/basic.rb#278
3352
3696
  def stdout; end
3353
3697
 
3354
- # source://thor-1.2.1/lib/thor/shell/basic.rb:431
3355
- def truncate(string, width); end
3356
-
3357
3698
  # @return [Boolean]
3358
3699
  #
3359
- # source://thor-1.2.1/lib/thor/shell/basic.rb:427
3700
+ # source://thor//lib/thor/shell/basic.rb#328
3360
3701
  def unix?; end
3361
3702
  end
3362
3703
 
3363
- # source://thor-1.2.1/lib/thor/shell/basic.rb:4
3364
- Thor::Shell::Basic::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer)
3365
-
3366
3704
  # Inherit from Thor::Shell::Basic and add set_color behavior. Check
3367
3705
  # Thor::Shell::Basic to see all available methods.
3368
3706
  #
3369
- # source://thor-1.2.1/lib/thor/shell/color.rb:9
3707
+ # source://thor//lib/thor/shell/color.rb#9
3370
3708
  class Thor::Shell::Color < ::Thor::Shell::Basic
3709
+ include ::LCSDiff
3710
+
3371
3711
  # Set color by using a string or one of the defined constants. If a third
3372
3712
  # option is set to true, it also adds bold to the string. This is based
3373
3713
  # on Highline implementation and it automatically appends CLEAR to the end
@@ -3400,149 +3740,155 @@ class Thor::Shell::Color < ::Thor::Shell::Basic
3400
3740
  # :on_cyan
3401
3741
  # :on_white
3402
3742
  #
3403
- # source://thor-1.2.1/lib/thor/shell/color.rb:79
3743
+ # source://thor//lib/thor/shell/color.rb#82
3404
3744
  def set_color(string, *colors); end
3405
3745
 
3406
3746
  protected
3407
3747
 
3408
3748
  # @return [Boolean]
3409
3749
  #
3410
- # source://thor-1.2.1/lib/thor/shell/color.rb:107
3750
+ # source://thor//lib/thor/shell/color.rb#110
3411
3751
  def are_colors_disabled?; end
3412
3752
 
3413
3753
  # @return [Boolean]
3414
3754
  #
3415
- # source://thor-1.2.1/lib/thor/shell/color.rb:103
3755
+ # source://thor//lib/thor/shell/color.rb#106
3416
3756
  def are_colors_supported?; end
3417
3757
 
3418
3758
  # @return [Boolean]
3419
3759
  #
3420
- # source://thor-1.2.1/lib/thor/shell/color.rb:99
3760
+ # source://thor//lib/thor/shell/color.rb#102
3421
3761
  def can_display_colors?; end
3422
-
3423
- # Check if Diff::LCS is loaded. If it is, use it to create pretty output
3424
- # for diff.
3425
- #
3426
- # @return [Boolean]
3427
- #
3428
- # source://thor-1.2.1/lib/thor/shell/color.rb:144
3429
- def diff_lcs_loaded?; end
3430
-
3431
- # source://thor-1.2.1/lib/thor/shell/color.rb:127
3432
- def output_diff_line(diff); end
3433
-
3434
- # Overwrite show_diff to show diff with colors if Diff::LCS is
3435
- # available.
3436
- #
3437
- # source://thor-1.2.1/lib/thor/shell/color.rb:114
3438
- def show_diff(destination, content); end
3439
3762
  end
3440
3763
 
3441
3764
  # Set the terminal's foreground ANSI color to black.
3442
3765
  #
3443
- # source://thor-1.2.1/lib/thor/shell/color.rb:15
3766
+ # source://thor//lib/thor/shell/color.rb#18
3444
3767
  Thor::Shell::Color::BLACK = T.let(T.unsafe(nil), String)
3445
3768
 
3446
3769
  # Set the terminal's foreground ANSI color to blue.
3447
3770
  #
3448
- # source://thor-1.2.1/lib/thor/shell/color.rb:23
3771
+ # source://thor//lib/thor/shell/color.rb#26
3449
3772
  Thor::Shell::Color::BLUE = T.let(T.unsafe(nil), String)
3450
3773
 
3451
3774
  # The start of an ANSI bold sequence.
3452
3775
  #
3453
- # source://thor-1.2.1/lib/thor/shell/color.rb:12
3776
+ # source://thor//lib/thor/shell/color.rb#15
3454
3777
  Thor::Shell::Color::BOLD = T.let(T.unsafe(nil), String)
3455
3778
 
3456
3779
  # Embed in a String to clear all previous ANSI sequences.
3457
3780
  #
3458
- # source://thor-1.2.1/lib/thor/shell/color.rb:10
3781
+ # source://thor//lib/thor/shell/color.rb#13
3459
3782
  Thor::Shell::Color::CLEAR = T.let(T.unsafe(nil), String)
3460
3783
 
3461
3784
  # Set the terminal's foreground ANSI color to cyan.
3462
3785
  #
3463
- # source://thor-1.2.1/lib/thor/shell/color.rb:27
3786
+ # source://thor//lib/thor/shell/color.rb#30
3464
3787
  Thor::Shell::Color::CYAN = T.let(T.unsafe(nil), String)
3465
3788
 
3466
3789
  # Set the terminal's foreground ANSI color to green.
3467
3790
  #
3468
- # source://thor-1.2.1/lib/thor/shell/color.rb:19
3791
+ # source://thor//lib/thor/shell/color.rb#22
3469
3792
  Thor::Shell::Color::GREEN = T.let(T.unsafe(nil), String)
3470
3793
 
3471
3794
  # Set the terminal's foreground ANSI color to magenta.
3472
3795
  #
3473
- # source://thor-1.2.1/lib/thor/shell/color.rb:25
3796
+ # source://thor//lib/thor/shell/color.rb#28
3474
3797
  Thor::Shell::Color::MAGENTA = T.let(T.unsafe(nil), String)
3475
3798
 
3476
3799
  # Set the terminal's background ANSI color to black.
3477
3800
  #
3478
- # source://thor-1.2.1/lib/thor/shell/color.rb:32
3801
+ # source://thor//lib/thor/shell/color.rb#35
3479
3802
  Thor::Shell::Color::ON_BLACK = T.let(T.unsafe(nil), String)
3480
3803
 
3481
3804
  # Set the terminal's background ANSI color to blue.
3482
3805
  #
3483
- # source://thor-1.2.1/lib/thor/shell/color.rb:40
3806
+ # source://thor//lib/thor/shell/color.rb#43
3484
3807
  Thor::Shell::Color::ON_BLUE = T.let(T.unsafe(nil), String)
3485
3808
 
3486
3809
  # Set the terminal's background ANSI color to cyan.
3487
3810
  #
3488
- # source://thor-1.2.1/lib/thor/shell/color.rb:44
3811
+ # source://thor//lib/thor/shell/color.rb#47
3489
3812
  Thor::Shell::Color::ON_CYAN = T.let(T.unsafe(nil), String)
3490
3813
 
3491
3814
  # Set the terminal's background ANSI color to green.
3492
3815
  #
3493
- # source://thor-1.2.1/lib/thor/shell/color.rb:36
3816
+ # source://thor//lib/thor/shell/color.rb#39
3494
3817
  Thor::Shell::Color::ON_GREEN = T.let(T.unsafe(nil), String)
3495
3818
 
3496
3819
  # Set the terminal's background ANSI color to magenta.
3497
3820
  #
3498
- # source://thor-1.2.1/lib/thor/shell/color.rb:42
3821
+ # source://thor//lib/thor/shell/color.rb#45
3499
3822
  Thor::Shell::Color::ON_MAGENTA = T.let(T.unsafe(nil), String)
3500
3823
 
3501
3824
  # Set the terminal's background ANSI color to red.
3502
3825
  #
3503
- # source://thor-1.2.1/lib/thor/shell/color.rb:34
3826
+ # source://thor//lib/thor/shell/color.rb#37
3504
3827
  Thor::Shell::Color::ON_RED = T.let(T.unsafe(nil), String)
3505
3828
 
3506
3829
  # Set the terminal's background ANSI color to white.
3507
3830
  #
3508
- # source://thor-1.2.1/lib/thor/shell/color.rb:46
3831
+ # source://thor//lib/thor/shell/color.rb#49
3509
3832
  Thor::Shell::Color::ON_WHITE = T.let(T.unsafe(nil), String)
3510
3833
 
3511
3834
  # Set the terminal's background ANSI color to yellow.
3512
3835
  #
3513
- # source://thor-1.2.1/lib/thor/shell/color.rb:38
3836
+ # source://thor//lib/thor/shell/color.rb#41
3514
3837
  Thor::Shell::Color::ON_YELLOW = T.let(T.unsafe(nil), String)
3515
3838
 
3516
3839
  # Set the terminal's foreground ANSI color to red.
3517
3840
  #
3518
- # source://thor-1.2.1/lib/thor/shell/color.rb:17
3841
+ # source://thor//lib/thor/shell/color.rb#20
3519
3842
  Thor::Shell::Color::RED = T.let(T.unsafe(nil), String)
3520
3843
 
3521
3844
  # Set the terminal's foreground ANSI color to white.
3522
3845
  #
3523
- # source://thor-1.2.1/lib/thor/shell/color.rb:29
3846
+ # source://thor//lib/thor/shell/color.rb#32
3524
3847
  Thor::Shell::Color::WHITE = T.let(T.unsafe(nil), String)
3525
3848
 
3526
3849
  # Set the terminal's foreground ANSI color to yellow.
3527
3850
  #
3528
- # source://thor-1.2.1/lib/thor/shell/color.rb:21
3851
+ # source://thor//lib/thor/shell/color.rb#24
3529
3852
  Thor::Shell::Color::YELLOW = T.let(T.unsafe(nil), String)
3530
3853
 
3854
+ # source://thor//lib/thor/shell/column_printer.rb#5
3855
+ class Thor::Shell::ColumnPrinter
3856
+ # @return [ColumnPrinter] a new instance of ColumnPrinter
3857
+ #
3858
+ # source://thor//lib/thor/shell/column_printer.rb#8
3859
+ def initialize(stdout, options = T.unsafe(nil)); end
3860
+
3861
+ # Returns the value of attribute options.
3862
+ #
3863
+ # source://thor//lib/thor/shell/column_printer.rb#6
3864
+ def options; end
3865
+
3866
+ # source://thor//lib/thor/shell/column_printer.rb#14
3867
+ def print(array); end
3868
+
3869
+ # Returns the value of attribute stdout.
3870
+ #
3871
+ # source://thor//lib/thor/shell/column_printer.rb#6
3872
+ def stdout; end
3873
+ end
3874
+
3531
3875
  # Inherit from Thor::Shell::Basic and add set_color behavior. Check
3532
3876
  # Thor::Shell::Basic to see all available methods.
3533
3877
  #
3534
- # source://thor-1.2.1/lib/thor/shell/html.rb:9
3878
+ # source://thor//lib/thor/shell/html.rb#9
3535
3879
  class Thor::Shell::HTML < ::Thor::Shell::Basic
3880
+ include ::LCSDiff
3881
+
3536
3882
  # Ask something to the user and receives a response.
3537
3883
  #
3538
3884
  # ==== Example
3539
- # ask("What is your name?")
3885
+ # ask("What is your name?")
3540
3886
  #
3541
3887
  # TODO: Implement #ask for Thor::Shell::HTML
3542
3888
  #
3543
3889
  # @raise [NotImplementedError]
3544
3890
  #
3545
- # source://thor-1.2.1/lib/thor/shell/html.rb:70
3891
+ # source://thor//lib/thor/shell/html.rb#73
3546
3892
  def ask(statement, color = T.unsafe(nil)); end
3547
3893
 
3548
3894
  # Set color by using a string or one of the defined constants. If a third
@@ -3550,213 +3896,262 @@ class Thor::Shell::HTML < ::Thor::Shell::Basic
3550
3896
  # on Highline implementation and it automatically appends CLEAR to the end
3551
3897
  # of the returned String.
3552
3898
  #
3553
- # source://thor-1.2.1/lib/thor/shell/html.rb:51
3899
+ # source://thor//lib/thor/shell/html.rb#54
3554
3900
  def set_color(string, *colors); end
3555
3901
 
3556
3902
  protected
3557
3903
 
3558
3904
  # @return [Boolean]
3559
3905
  #
3560
- # source://thor-1.2.1/lib/thor/shell/html.rb:76
3906
+ # source://thor//lib/thor/shell/html.rb#79
3561
3907
  def can_display_colors?; end
3562
-
3563
- # Check if Diff::LCS is loaded. If it is, use it to create pretty output
3564
- # for diff.
3565
- #
3566
- # @return [Boolean]
3567
- #
3568
- # source://thor-1.2.1/lib/thor/shell/html.rb:113
3569
- def diff_lcs_loaded?; end
3570
-
3571
- # source://thor-1.2.1/lib/thor/shell/html.rb:96
3572
- def output_diff_line(diff); end
3573
-
3574
- # Overwrite show_diff to show diff with colors if Diff::LCS is
3575
- # available.
3576
- #
3577
- # source://thor-1.2.1/lib/thor/shell/html.rb:83
3578
- def show_diff(destination, content); end
3579
3908
  end
3580
3909
 
3581
3910
  # Set the terminal's foreground HTML color to black.
3582
3911
  #
3583
- # source://thor-1.2.1/lib/thor/shell/html.rb:13
3912
+ # source://thor//lib/thor/shell/html.rb#16
3584
3913
  Thor::Shell::HTML::BLACK = T.let(T.unsafe(nil), String)
3585
3914
 
3586
3915
  # Set the terminal's foreground HTML color to blue.
3587
3916
  #
3588
- # source://thor-1.2.1/lib/thor/shell/html.rb:21
3917
+ # source://thor//lib/thor/shell/html.rb#24
3589
3918
  Thor::Shell::HTML::BLUE = T.let(T.unsafe(nil), String)
3590
3919
 
3591
3920
  # The start of an HTML bold sequence.
3592
3921
  #
3593
- # source://thor-1.2.1/lib/thor/shell/html.rb:10
3922
+ # source://thor//lib/thor/shell/html.rb#13
3594
3923
  Thor::Shell::HTML::BOLD = T.let(T.unsafe(nil), String)
3595
3924
 
3596
3925
  # Set the terminal's foreground HTML color to cyan.
3597
3926
  #
3598
- # source://thor-1.2.1/lib/thor/shell/html.rb:25
3927
+ # source://thor//lib/thor/shell/html.rb#28
3599
3928
  Thor::Shell::HTML::CYAN = T.let(T.unsafe(nil), String)
3600
3929
 
3601
3930
  # Set the terminal's foreground HTML color to green.
3602
3931
  #
3603
- # source://thor-1.2.1/lib/thor/shell/html.rb:17
3932
+ # source://thor//lib/thor/shell/html.rb#20
3604
3933
  Thor::Shell::HTML::GREEN = T.let(T.unsafe(nil), String)
3605
3934
 
3606
3935
  # Set the terminal's foreground HTML color to magenta.
3607
3936
  #
3608
- # source://thor-1.2.1/lib/thor/shell/html.rb:23
3937
+ # source://thor//lib/thor/shell/html.rb#26
3609
3938
  Thor::Shell::HTML::MAGENTA = T.let(T.unsafe(nil), String)
3610
3939
 
3611
3940
  # Set the terminal's background HTML color to black.
3612
3941
  #
3613
- # source://thor-1.2.1/lib/thor/shell/html.rb:30
3942
+ # source://thor//lib/thor/shell/html.rb#33
3614
3943
  Thor::Shell::HTML::ON_BLACK = T.let(T.unsafe(nil), String)
3615
3944
 
3616
3945
  # Set the terminal's background HTML color to blue.
3617
3946
  #
3618
- # source://thor-1.2.1/lib/thor/shell/html.rb:38
3947
+ # source://thor//lib/thor/shell/html.rb#41
3619
3948
  Thor::Shell::HTML::ON_BLUE = T.let(T.unsafe(nil), String)
3620
3949
 
3621
3950
  # Set the terminal's background HTML color to cyan.
3622
3951
  #
3623
- # source://thor-1.2.1/lib/thor/shell/html.rb:42
3952
+ # source://thor//lib/thor/shell/html.rb#45
3624
3953
  Thor::Shell::HTML::ON_CYAN = T.let(T.unsafe(nil), String)
3625
3954
 
3626
3955
  # Set the terminal's background HTML color to green.
3627
3956
  #
3628
- # source://thor-1.2.1/lib/thor/shell/html.rb:34
3957
+ # source://thor//lib/thor/shell/html.rb#37
3629
3958
  Thor::Shell::HTML::ON_GREEN = T.let(T.unsafe(nil), String)
3630
3959
 
3631
3960
  # Set the terminal's background HTML color to magenta.
3632
3961
  #
3633
- # source://thor-1.2.1/lib/thor/shell/html.rb:40
3962
+ # source://thor//lib/thor/shell/html.rb#43
3634
3963
  Thor::Shell::HTML::ON_MAGENTA = T.let(T.unsafe(nil), String)
3635
3964
 
3636
3965
  # Set the terminal's background HTML color to red.
3637
3966
  #
3638
- # source://thor-1.2.1/lib/thor/shell/html.rb:32
3967
+ # source://thor//lib/thor/shell/html.rb#35
3639
3968
  Thor::Shell::HTML::ON_RED = T.let(T.unsafe(nil), String)
3640
3969
 
3641
3970
  # Set the terminal's background HTML color to white.
3642
3971
  #
3643
- # source://thor-1.2.1/lib/thor/shell/html.rb:44
3972
+ # source://thor//lib/thor/shell/html.rb#47
3644
3973
  Thor::Shell::HTML::ON_WHITE = T.let(T.unsafe(nil), String)
3645
3974
 
3646
3975
  # Set the terminal's background HTML color to yellow.
3647
3976
  #
3648
- # source://thor-1.2.1/lib/thor/shell/html.rb:36
3977
+ # source://thor//lib/thor/shell/html.rb#39
3649
3978
  Thor::Shell::HTML::ON_YELLOW = T.let(T.unsafe(nil), String)
3650
3979
 
3651
3980
  # Set the terminal's foreground HTML color to red.
3652
3981
  #
3653
- # source://thor-1.2.1/lib/thor/shell/html.rb:15
3982
+ # source://thor//lib/thor/shell/html.rb#18
3654
3983
  Thor::Shell::HTML::RED = T.let(T.unsafe(nil), String)
3655
3984
 
3656
3985
  # Set the terminal's foreground HTML color to white.
3657
3986
  #
3658
- # source://thor-1.2.1/lib/thor/shell/html.rb:27
3987
+ # source://thor//lib/thor/shell/html.rb#30
3659
3988
  Thor::Shell::HTML::WHITE = T.let(T.unsafe(nil), String)
3660
3989
 
3661
3990
  # Set the terminal's foreground HTML color to yellow.
3662
3991
  #
3663
- # source://thor-1.2.1/lib/thor/shell/html.rb:19
3992
+ # source://thor//lib/thor/shell/html.rb#22
3664
3993
  Thor::Shell::HTML::YELLOW = T.let(T.unsafe(nil), String)
3665
3994
 
3666
- # source://thor-1.2.1/lib/thor/shell.rb:24
3995
+ # source://thor//lib/thor/shell.rb#24
3667
3996
  Thor::Shell::SHELL_DELEGATED_METHODS = T.let(T.unsafe(nil), Array)
3668
3997
 
3669
- # source://thor-1.2.1/lib/thor/base.rb:23
3998
+ # source://thor//lib/thor/shell/table_printer.rb#6
3999
+ class Thor::Shell::TablePrinter < ::Thor::Shell::ColumnPrinter
4000
+ # @return [TablePrinter] a new instance of TablePrinter
4001
+ #
4002
+ # source://thor//lib/thor/shell/table_printer.rb#9
4003
+ def initialize(stdout, options = T.unsafe(nil)); end
4004
+
4005
+ # source://thor//lib/thor/shell/table_printer.rb#18
4006
+ def print(array); end
4007
+
4008
+ private
4009
+
4010
+ # source://thor//lib/thor/shell/table_printer.rb#72
4011
+ def format_cell(column, row_size, index); end
4012
+
4013
+ # source://thor//lib/thor/shell/table_printer.rb#113
4014
+ def indentation; end
4015
+
4016
+ # source://thor//lib/thor/shell/table_printer.rb#47
4017
+ def prepare(array); end
4018
+
4019
+ # source://thor//lib/thor/shell/table_printer.rb#96
4020
+ def print_border_separator; end
4021
+
4022
+ # source://thor//lib/thor/shell/table_printer.rb#103
4023
+ def truncate(string); end
4024
+ end
4025
+
4026
+ # source://thor//lib/thor/shell/table_printer.rb#7
4027
+ Thor::Shell::TablePrinter::BORDER_SEPARATOR = T.let(T.unsafe(nil), Symbol)
4028
+
4029
+ # source://thor//lib/thor/shell/terminal.rb#3
4030
+ module Thor::Shell::Terminal
4031
+ class << self
4032
+ # source://thor//lib/thor/shell/terminal.rb#9
4033
+ def terminal_width; end
4034
+
4035
+ # @return [Boolean]
4036
+ #
4037
+ # source://thor//lib/thor/shell/terminal.rb#20
4038
+ def unix?; end
4039
+
4040
+ private
4041
+
4042
+ # Calculate the dynamic width of the terminal
4043
+ #
4044
+ # source://thor//lib/thor/shell/terminal.rb#27
4045
+ def dynamic_width; end
4046
+
4047
+ # source://thor//lib/thor/shell/terminal.rb#31
4048
+ def dynamic_width_stty; end
4049
+
4050
+ # source://thor//lib/thor/shell/terminal.rb#35
4051
+ def dynamic_width_tput; end
4052
+ end
4053
+ end
4054
+
4055
+ # source://thor//lib/thor/shell/terminal.rb#4
4056
+ Thor::Shell::Terminal::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer)
4057
+
4058
+ # source://thor//lib/thor/shell/wrapped_printer.rb#6
4059
+ class Thor::Shell::WrappedPrinter < ::Thor::Shell::ColumnPrinter
4060
+ # source://thor//lib/thor/shell/wrapped_printer.rb#7
4061
+ def print(message); end
4062
+ end
4063
+
4064
+ # source://thor//lib/thor/base.rb#23
3670
4065
  Thor::TEMPLATE_EXTNAME = T.let(T.unsafe(nil), String)
3671
4066
 
3672
4067
  # Thor methods that should not be overwritten by the user.
3673
4068
  #
3674
- # source://thor-1.2.1/lib/thor/base.rb:20
4069
+ # source://thor//lib/thor/base.rb#20
3675
4070
  Thor::THOR_RESERVED_WORDS = T.let(T.unsafe(nil), Array)
3676
4071
 
3677
- # source://thor-1.2.1/lib/thor/command.rb:117
4072
+ # source://thor//lib/thor/command.rb#126
3678
4073
  Thor::Task = Thor::Command
3679
4074
 
3680
4075
  # Raised when a command was not found.
3681
4076
  #
3682
- # source://thor-1.2.1/lib/thor/error.rb:27
4077
+ # source://thor//lib/thor/error.rb#24
3683
4078
  class Thor::UndefinedCommandError < ::Thor::Error
3684
- include ::DidYouMean::Correctable
4079
+ include ::Thor::Correctable
3685
4080
 
3686
4081
  # @return [UndefinedCommandError] a new instance of UndefinedCommandError
3687
4082
  #
3688
- # source://thor-1.2.1/lib/thor/error.rb:46
4083
+ # source://thor//lib/thor/error.rb#43
3689
4084
  def initialize(command, all_commands, namespace); end
3690
4085
 
3691
4086
  # Returns the value of attribute all_commands.
3692
4087
  #
3693
- # source://thor-1.2.1/lib/thor/error.rb:44
4088
+ # source://thor//lib/thor/error.rb#41
3694
4089
  def all_commands; end
3695
4090
 
3696
4091
  # Returns the value of attribute command.
3697
4092
  #
3698
- # source://thor-1.2.1/lib/thor/error.rb:44
4093
+ # source://thor//lib/thor/error.rb#41
3699
4094
  def command; end
3700
4095
  end
3701
4096
 
3702
- # source://thor-1.2.1/lib/thor/error.rb:28
4097
+ # source://thor//lib/thor/error.rb#25
3703
4098
  class Thor::UndefinedCommandError::SpellChecker
3704
4099
  # @return [SpellChecker] a new instance of SpellChecker
3705
4100
  #
3706
- # source://thor-1.2.1/lib/thor/error.rb:31
4101
+ # source://thor//lib/thor/error.rb#28
3707
4102
  def initialize(error); end
3708
4103
 
3709
- # source://thor-1.2.1/lib/thor/error.rb:35
4104
+ # source://thor//lib/thor/error.rb#32
3710
4105
  def corrections; end
3711
4106
 
3712
4107
  # Returns the value of attribute error.
3713
4108
  #
3714
- # source://thor-1.2.1/lib/thor/error.rb:29
4109
+ # source://thor//lib/thor/error.rb#26
3715
4110
  def error; end
3716
4111
 
3717
- # source://thor-1.2.1/lib/thor/error.rb:39
4112
+ # source://thor//lib/thor/error.rb#36
3718
4113
  def spell_checker; end
3719
4114
  end
3720
4115
 
3721
- # source://thor-1.2.1/lib/thor/error.rb:58
4116
+ # source://thor//lib/thor/error.rb#55
3722
4117
  Thor::UndefinedTaskError = Thor::UndefinedCommandError
3723
4118
 
3724
- # source://thor-1.2.1/lib/thor/error.rb:68
4119
+ # source://thor//lib/thor/error.rb#65
3725
4120
  class Thor::UnknownArgumentError < ::Thor::Error
3726
- include ::DidYouMean::Correctable
4121
+ include ::Thor::Correctable
3727
4122
 
3728
4123
  # @return [UnknownArgumentError] a new instance of UnknownArgumentError
3729
4124
  #
3730
- # source://thor-1.2.1/lib/thor/error.rb:88
4125
+ # source://thor//lib/thor/error.rb#85
3731
4126
  def initialize(switches, unknown); end
3732
4127
 
3733
4128
  # Returns the value of attribute switches.
3734
4129
  #
3735
- # source://thor-1.2.1/lib/thor/error.rb:86
4130
+ # source://thor//lib/thor/error.rb#83
3736
4131
  def switches; end
3737
4132
 
3738
4133
  # Returns the value of attribute unknown.
3739
4134
  #
3740
- # source://thor-1.2.1/lib/thor/error.rb:86
4135
+ # source://thor//lib/thor/error.rb#83
3741
4136
  def unknown; end
3742
4137
  end
3743
4138
 
3744
- # source://thor-1.2.1/lib/thor/error.rb:69
4139
+ # source://thor//lib/thor/error.rb#66
3745
4140
  class Thor::UnknownArgumentError::SpellChecker
3746
4141
  # @return [SpellChecker] a new instance of SpellChecker
3747
4142
  #
3748
- # source://thor-1.2.1/lib/thor/error.rb:72
4143
+ # source://thor//lib/thor/error.rb#69
3749
4144
  def initialize(error); end
3750
4145
 
3751
- # source://thor-1.2.1/lib/thor/error.rb:76
4146
+ # source://thor//lib/thor/error.rb#73
3752
4147
  def corrections; end
3753
4148
 
3754
4149
  # Returns the value of attribute error.
3755
4150
  #
3756
- # source://thor-1.2.1/lib/thor/error.rb:70
4151
+ # source://thor//lib/thor/error.rb#67
3757
4152
  def error; end
3758
4153
 
3759
- # source://thor-1.2.1/lib/thor/error.rb:81
4154
+ # source://thor//lib/thor/error.rb#78
3760
4155
  def spell_checker; end
3761
4156
  end
3762
4157
 
@@ -3770,7 +4165,7 @@ end
3770
4165
  #
3771
4166
  # Thor::Util.load_thorfile("~/.thor/foo")
3772
4167
  #
3773
- # source://thor-1.2.1/lib/thor/util.rb:17
4168
+ # source://thor//lib/thor/util.rb#17
3774
4169
  module Thor::Util
3775
4170
  class << self
3776
4171
  # Receives a string and convert it to camel case. camel_case returns CamelCase.
@@ -3781,7 +4176,7 @@ module Thor::Util
3781
4176
  # ==== Returns
3782
4177
  # String
3783
4178
  #
3784
- # source://thor-1.2.1/lib/thor/util.rb:104
4179
+ # source://thor//lib/thor/util.rb#104
3785
4180
  def camel_case(str); end
3786
4181
 
3787
4182
  # Returns a string that has had any glob characters escaped.
@@ -3797,7 +4192,7 @@ module Thor::Util
3797
4192
  # ==== Returns
3798
4193
  # String
3799
4194
  #
3800
- # source://thor-1.2.1/lib/thor/util.rb:263
4195
+ # source://thor//lib/thor/util.rb#264
3801
4196
  def escape_globs(path); end
3802
4197
 
3803
4198
  # Returns a string that has had any HTML characters escaped.
@@ -3812,7 +4207,7 @@ module Thor::Util
3812
4207
  # ==== Returns
3813
4208
  # String
3814
4209
  #
3815
- # source://thor-1.2.1/lib/thor/util.rb:279
4210
+ # source://thor//lib/thor/util.rb#280
3816
4211
  def escape_html(string); end
3817
4212
 
3818
4213
  # Receives a namespace and search for it in the Thor::Base subclasses.
@@ -3820,7 +4215,7 @@ module Thor::Util
3820
4215
  # ==== Parameters
3821
4216
  # namespace<String>:: The namespace to search for.
3822
4217
  #
3823
- # source://thor-1.2.1/lib/thor/util.rb:24
4218
+ # source://thor//lib/thor/util.rb#24
3824
4219
  def find_by_namespace(namespace); end
3825
4220
 
3826
4221
  # Receives a namespace and tries to retrieve a Thor or Thor::Group class
@@ -3845,7 +4240,7 @@ module Thor::Util
3845
4240
  # ==== Parameters
3846
4241
  # namespace<String>
3847
4242
  #
3848
- # source://thor-1.2.1/lib/thor/util.rb:131
4243
+ # source://thor//lib/thor/util.rb#131
3849
4244
  def find_class_and_command_by_namespace(namespace, fallback = T.unsafe(nil)); end
3850
4245
 
3851
4246
  # Receives a namespace and tries to retrieve a Thor or Thor::Group class
@@ -3870,18 +4265,18 @@ module Thor::Util
3870
4265
  # ==== Parameters
3871
4266
  # namespace<String>
3872
4267
  #
3873
- # source://thor-1.2.1/lib/thor/util.rb:131
4268
+ # source://thor//lib/thor/util.rb#131
3874
4269
  def find_class_and_task_by_namespace(namespace, fallback = T.unsafe(nil)); end
3875
4270
 
3876
4271
  # Where to look for Thor files.
3877
4272
  #
3878
- # source://thor-1.2.1/lib/thor/util.rb:212
4273
+ # source://thor//lib/thor/util.rb#213
3879
4274
  def globs_for(path); end
3880
4275
 
3881
4276
  # Receives a path and load the thor file in the path. The file is evaluated
3882
4277
  # inside the sandbox to avoid namespacing conflicts.
3883
4278
  #
3884
- # source://thor-1.2.1/lib/thor/util.rb:152
4279
+ # source://thor//lib/thor/util.rb#153
3885
4280
  def load_thorfile(path, content = T.unsafe(nil), debug = T.unsafe(nil)); end
3886
4281
 
3887
4282
  # Receives a constant and converts it to a Thor namespace. Since Thor
@@ -3898,7 +4293,7 @@ module Thor::Util
3898
4293
  # ==== Returns
3899
4294
  # String:: If we receive Foo::Bar::Baz it returns "foo:bar:baz"
3900
4295
  #
3901
- # source://thor-1.2.1/lib/thor/util.rb:43
4296
+ # source://thor//lib/thor/util.rb#43
3902
4297
  def namespace_from_thor_class(constant); end
3903
4298
 
3904
4299
  # Given the contents, evaluate it inside the sandbox and returns the
@@ -3910,13 +4305,13 @@ module Thor::Util
3910
4305
  # ==== Returns
3911
4306
  # Array[Object]
3912
4307
  #
3913
- # source://thor-1.2.1/lib/thor/util.rb:58
4308
+ # source://thor//lib/thor/util.rb#58
3914
4309
  def namespaces_in_content(contents, file = T.unsafe(nil)); end
3915
4310
 
3916
4311
  # Return the path to the ruby interpreter taking into account multiple
3917
4312
  # installations and windows extensions.
3918
4313
  #
3919
- # source://thor-1.2.1/lib/thor/util.rb:220
4314
+ # source://thor//lib/thor/util.rb#221
3920
4315
  def ruby_command; end
3921
4316
 
3922
4317
  # Receives a string and convert it to snake case. SnakeCase returns snake_case.
@@ -3927,17 +4322,17 @@ module Thor::Util
3927
4322
  # ==== Returns
3928
4323
  # String
3929
4324
  #
3930
- # source://thor-1.2.1/lib/thor/util.rb:90
4325
+ # source://thor//lib/thor/util.rb#90
3931
4326
  def snake_case(str); end
3932
4327
 
3933
4328
  # Returns the thor classes declared inside the given class.
3934
4329
  #
3935
- # source://thor-1.2.1/lib/thor/util.rb:74
4330
+ # source://thor//lib/thor/util.rb#74
3936
4331
  def thor_classes_in(klass); end
3937
4332
 
3938
4333
  # Returns the root where thor files are located, depending on the OS.
3939
4334
  #
3940
- # source://thor-1.2.1/lib/thor/util.rb:191
4335
+ # source://thor//lib/thor/util.rb#192
3941
4336
  def thor_root; end
3942
4337
 
3943
4338
  # Returns the files in the thor root. On Windows thor_root will be something
@@ -3947,10 +4342,10 @@ module Thor::Util
3947
4342
  #
3948
4343
  # If we don't #gsub the \ character, Dir.glob will fail.
3949
4344
  #
3950
- # source://thor-1.2.1/lib/thor/util.rb:202
4345
+ # source://thor//lib/thor/util.rb#203
3951
4346
  def thor_root_glob; end
3952
4347
 
3953
- # source://thor-1.2.1/lib/thor/util.rb:167
4348
+ # source://thor//lib/thor/util.rb#168
3954
4349
  def user_home; end
3955
4350
  end
3956
4351
  end