tsumanne 0.0.3 → 0.0.4

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