sorbet-result 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +1 -1
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +11 -0
  6. data/Gemfile +1 -1
  7. data/Gemfile.lock +52 -57
  8. data/README.md +3 -3
  9. data/lib/typed/result.rb +32 -2
  10. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  11. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +20 -15
  12. data/sorbet/rbi/gems/io-console@0.7.2.rbi +1 -0
  13. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.5.rbi} +148 -72
  14. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +1 -0
  15. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  16. data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.1.rbi} +252 -241
  17. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  18. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +32 -21
  19. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.5.1.rbi} +233 -186
  20. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  21. data/sorbet/rbi/gems/psych@5.1.2.rbi +1 -0
  22. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
  23. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  24. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +56 -55
  25. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  26. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
  27. data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.5.10.rbi} +1 -0
  28. data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.33.1.rbi} +1143 -671
  29. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.22.1.rbi} +1 -0
  30. data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +1 -0
  31. data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.66.1.rbi} +3312 -2415
  32. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  33. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.5.0.rbi} +2009 -854
  34. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  35. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.5.0.rbi} +1 -0
  36. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +1 -0
  37. data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.41.1.rbi} +171 -95
  38. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +1 -0
  39. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.3.rbi} +357 -257
  40. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
  41. data/sorbet/rbi/gems/{unicode-display_width@2.5.0.rbi → unicode-display_width@2.6.0.rbi} +1 -0
  42. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  43. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
  44. metadata +28 -45
  45. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  46. data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
  47. data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
  48. data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
  49. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
@@ -4,6 +4,7 @@
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
+
7
8
  # source://thor//lib/thor/shell/lcs_diff.rb#1
8
9
  module LCSDiff
9
10
  protected
@@ -36,7 +37,7 @@ class Thor
36
37
  extend ::Thor::Base::ClassMethods
37
38
  extend ::Thor::Invocation::ClassMethods
38
39
 
39
- # source://thor//lib/thor.rb#652
40
+ # source://thor//lib/thor.rb#663
40
41
  def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
41
42
 
42
43
  class << self
@@ -95,6 +96,19 @@ class Thor
95
96
  # source://thor//lib/thor.rb#363
96
97
  def check_unknown_options?(config); end
97
98
 
99
+ # Checks if a specified command exists.
100
+ #
101
+ # ==== Parameters
102
+ # command_name<String>:: The name of the command to check for existence.
103
+ #
104
+ # ==== Returns
105
+ # Boolean:: +true+ if the command exists, +false+ otherwise.
106
+ #
107
+ # @return [Boolean]
108
+ #
109
+ # source://thor//lib/thor.rb#449
110
+ def command_exists?(command_name); end
111
+
98
112
  # Prints help information for the given command.
99
113
  #
100
114
  # ==== Parameters
@@ -470,48 +484,48 @@ class Thor
470
484
  # the command that is going to be invoked and a boolean which indicates if
471
485
  # the namespace should be displayed as arguments.
472
486
  #
473
- # source://thor//lib/thor.rb#535
487
+ # source://thor//lib/thor.rb#546
474
488
  def banner(command, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end
475
489
 
476
- # source://thor//lib/thor.rb#541
490
+ # source://thor//lib/thor.rb#552
477
491
  def baseclass; end
478
492
 
479
- # source://thor//lib/thor.rb#549
493
+ # source://thor//lib/thor.rb#560
480
494
  def create_command(meth); end
481
495
 
482
- # source://thor//lib/thor.rb#549
496
+ # source://thor//lib/thor.rb#560
483
497
  def create_task(meth); end
484
498
 
485
499
  # help command has the required check disabled by default.
486
500
  #
487
- # source://thor//lib/thor.rb#467
501
+ # source://thor//lib/thor.rb#478
488
502
  def disable_required_check; end
489
503
 
490
504
  # The method responsible for dispatching given the args.
491
505
  #
492
506
  # @yield [instance]
493
507
  #
494
- # source://thor//lib/thor.rb#494
508
+ # source://thor//lib/thor.rb#505
495
509
  def dispatch(meth, given_args, given_opts, config); end
496
510
 
497
- # source://thor//lib/thor.rb#545
511
+ # source://thor//lib/thor.rb#556
498
512
  def dynamic_command_class; end
499
513
 
500
514
  # this is the logic that takes the command name passed in by the user
501
515
  # and determines whether it is an unambiguous substrings of a command or
502
516
  # alias name.
503
517
  #
504
- # source://thor//lib/thor.rb#615
518
+ # source://thor//lib/thor.rb#626
505
519
  def find_command_possibilities(meth); end
506
520
 
507
521
  # this is the logic that takes the command name passed in by the user
508
522
  # and determines whether it is an unambiguous substrings of a command or
509
523
  # alias name.
510
524
  #
511
- # source://thor//lib/thor.rb#615
525
+ # source://thor//lib/thor.rb#626
512
526
  def find_task_possibilities(meth); end
513
527
 
514
- # source://thor//lib/thor.rb#575
528
+ # source://thor//lib/thor.rb#586
515
529
  def initialize_added; end
516
530
 
517
531
  # Returns this class at least one of required options array set.
@@ -519,7 +533,7 @@ class Thor
519
533
  # ==== Returns
520
534
  # Array[Array[Thor::Option.name]]
521
535
  #
522
- # source://thor//lib/thor.rb#458
536
+ # source://thor//lib/thor.rb#469
523
537
  def method_at_least_one_option_names; end
524
538
 
525
539
  # Returns this class exclusive options array set.
@@ -527,7 +541,7 @@ class Thor
527
541
  # ==== Returns
528
542
  # Array[Array[Thor::Option.name]]
529
543
  #
530
- # source://thor//lib/thor.rb#449
544
+ # source://thor//lib/thor.rb#460
531
545
  def method_exclusive_option_names; end
532
546
 
533
547
  # receives a (possibly nil) command name and returns a name that is in
@@ -540,7 +554,7 @@ class Thor
540
554
  #
541
555
  # @raise [AmbiguousTaskError]
542
556
  #
543
- # source://thor//lib/thor.rb#594
557
+ # source://thor//lib/thor.rb#605
544
558
  def normalize_command_name(meth); end
545
559
 
546
560
  # receives a (possibly nil) command name and returns a name that is in
@@ -553,23 +567,23 @@ class Thor
553
567
  #
554
568
  # @raise [AmbiguousTaskError]
555
569
  #
556
- # source://thor//lib/thor.rb#594
570
+ # source://thor//lib/thor.rb#605
557
571
  def normalize_task_name(meth); end
558
572
 
559
- # source://thor//lib/thor.rb#482
573
+ # source://thor//lib/thor.rb#493
560
574
  def print_at_least_one_required_options(shell, command = T.unsafe(nil)); end
561
575
 
562
- # source://thor//lib/thor.rb#471
576
+ # source://thor//lib/thor.rb#482
563
577
  def print_exclusive_options(shell, command = T.unsafe(nil)); end
564
578
 
565
579
  # Retrieve the command name from given args.
566
580
  #
567
- # source://thor//lib/thor.rb#581
581
+ # source://thor//lib/thor.rb#592
568
582
  def retrieve_command_name(args); end
569
583
 
570
584
  # Retrieve the command name from given args.
571
585
  #
572
- # source://thor//lib/thor.rb#581
586
+ # source://thor//lib/thor.rb#592
573
587
  def retrieve_task_name(args); end
574
588
 
575
589
  # Sort the commands, lexicographically by default.
@@ -577,16 +591,16 @@ class Thor
577
591
  # Can be overridden in the subclass to change the display order of the
578
592
  # commands.
579
593
  #
580
- # source://thor//lib/thor.rb#642
594
+ # source://thor//lib/thor.rb#653
581
595
  def sort_commands!(list); end
582
596
 
583
- # source://thor//lib/thor.rb#462
597
+ # source://thor//lib/thor.rb#473
584
598
  def stop_on_unknown_option; end
585
599
 
586
- # source://thor//lib/thor.rb#630
600
+ # source://thor//lib/thor.rb#641
587
601
  def subcommand_help(cmd); end
588
602
 
589
- # source://thor//lib/thor.rb#630
603
+ # source://thor//lib/thor.rb#641
590
604
  def subtask_help(cmd); end
591
605
  end
592
606
  end
@@ -662,7 +676,7 @@ module Thor::Actions
662
676
  # 'config.gem "rspec"'
663
677
  # end
664
678
  #
665
- # source://thor//lib/thor/actions/file_manipulation.rb#193
679
+ # source://thor//lib/thor/actions/file_manipulation.rb#192
666
680
  def append_file(path, *args, &block); end
667
681
 
668
682
  # Append text to a file. Since it depends on insert_into_file, it's reversible.
@@ -680,7 +694,7 @@ module Thor::Actions
680
694
  # 'config.gem "rspec"'
681
695
  # end
682
696
  #
683
- # source://thor//lib/thor/actions/file_manipulation.rb#193
697
+ # source://thor//lib/thor/actions/file_manipulation.rb#192
684
698
  def append_to_file(path, *args, &block); end
685
699
 
686
700
  # Loads an external file and execute it in the instance binding.
@@ -721,7 +735,7 @@ module Thor::Actions
721
735
  #
722
736
  # chmod "script/server", 0755
723
737
  #
724
- # source://thor//lib/thor/actions/file_manipulation.rb#146
738
+ # source://thor//lib/thor/actions/file_manipulation.rb#145
725
739
  def chmod(path, mode, config = T.unsafe(nil)); end
726
740
 
727
741
  # Comment all lines matching a given regex. It will leave the space
@@ -737,16 +751,25 @@ module Thor::Actions
737
751
  #
738
752
  # comment_lines 'config/initializers/session_store.rb', /cookie_store/
739
753
  #
740
- # source://thor//lib/thor/actions/file_manipulation.rb#310
754
+ # source://thor//lib/thor/actions/file_manipulation.rb#308
741
755
  def comment_lines(path, flag, *args); end
742
756
 
757
+ # Copies the file from the relative source to the relative destination. If
758
+ # the destination is not given it's assumed to be equal to the source.
759
+ #
760
+ # ==== Parameters
761
+ # source<String>:: the relative path to the source root.
762
+ # destination<String>:: the relative path to the destination root.
763
+ # config<Hash>:: give :verbose => false to not log the status, and
764
+ # :mode => :preserve, to preserve the file mode from the source.
765
+ #
743
766
  # ==== Examples
744
767
  #
745
768
  # copy_file "README", "doc/README"
746
769
  #
747
770
  # copy_file "doc/README"
748
771
  #
749
- # source://thor//lib/thor/actions/file_manipulation.rb#21
772
+ # source://thor//lib/thor/actions/file_manipulation.rb#20
750
773
  def copy_file(source, *args, &block); end
751
774
 
752
775
  # Create a new file relative to the destination root with the given data,
@@ -885,7 +908,7 @@ module Thor::Actions
885
908
  # content.split("\n").first
886
909
  # end
887
910
  #
888
- # source://thor//lib/thor/actions/file_manipulation.rb#82
911
+ # source://thor//lib/thor/actions/file_manipulation.rb#81
889
912
  def get(source, *args, &block); end
890
913
 
891
914
  # Run a regular expression replacement on a file.
@@ -905,7 +928,7 @@ module Thor::Actions
905
928
  # match << " no more. Use thor!"
906
929
  # end
907
930
  #
908
- # source://thor//lib/thor/actions/file_manipulation.rb#263
931
+ # source://thor//lib/thor/actions/file_manipulation.rb#262
909
932
  def gsub_file(path, flag, *args, &block); end
910
933
 
911
934
  # Goes to the root and execute the given block.
@@ -930,7 +953,7 @@ module Thor::Actions
930
953
  # " filter_parameter :password\n"
931
954
  # end
932
955
  #
933
- # source://thor//lib/thor/actions/file_manipulation.rb#217
956
+ # source://thor//lib/thor/actions/file_manipulation.rb#216
934
957
  def inject_into_class(path, klass, *args, &block); end
935
958
 
936
959
  # source://thor//lib/thor/actions/inject_into_file.rb#26
@@ -953,7 +976,7 @@ module Thor::Actions
953
976
  # " def help; 'help'; end\n"
954
977
  # end
955
978
  #
956
- # source://thor//lib/thor/actions/file_manipulation.rb#240
979
+ # source://thor//lib/thor/actions/file_manipulation.rb#239
957
980
  def inject_into_module(path, module_name, *args, &block); end
958
981
 
959
982
  # source://thor//lib/thor/actions/inject_into_file.rb#26
@@ -987,7 +1010,7 @@ module Thor::Actions
987
1010
  #
988
1011
  # link_file "doc/README"
989
1012
  #
990
- # source://thor//lib/thor/actions/file_manipulation.rb#51
1013
+ # source://thor//lib/thor/actions/file_manipulation.rb#50
991
1014
  def link_file(source, *args); end
992
1015
 
993
1016
  # Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -1005,7 +1028,7 @@ module Thor::Actions
1005
1028
  # 'config.gem "rspec"'
1006
1029
  # end
1007
1030
  #
1008
- # source://thor//lib/thor/actions/file_manipulation.rb#171
1031
+ # source://thor//lib/thor/actions/file_manipulation.rb#170
1009
1032
  def prepend_file(path, *args, &block); end
1010
1033
 
1011
1034
  # Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -1023,7 +1046,7 @@ module Thor::Actions
1023
1046
  # 'config.gem "rspec"'
1024
1047
  # end
1025
1048
  #
1026
- # source://thor//lib/thor/actions/file_manipulation.rb#171
1049
+ # source://thor//lib/thor/actions/file_manipulation.rb#170
1027
1050
  def prepend_to_file(path, *args, &block); end
1028
1051
 
1029
1052
  # Returns the given path relative to the absolute root (ie, root where
@@ -1043,7 +1066,7 @@ module Thor::Actions
1043
1066
  # remove_file 'README'
1044
1067
  # remove_file 'app/controllers/application_controller.rb'
1045
1068
  #
1046
- # source://thor//lib/thor/actions/file_manipulation.rb#327
1069
+ # source://thor//lib/thor/actions/file_manipulation.rb#325
1047
1070
  def remove_dir(path, config = T.unsafe(nil)); end
1048
1071
 
1049
1072
  # Removes a file at the given location.
@@ -1057,7 +1080,7 @@ module Thor::Actions
1057
1080
  # remove_file 'README'
1058
1081
  # remove_file 'app/controllers/application_controller.rb'
1059
1082
  #
1060
- # source://thor//lib/thor/actions/file_manipulation.rb#327
1083
+ # source://thor//lib/thor/actions/file_manipulation.rb#325
1061
1084
  def remove_file(path, config = T.unsafe(nil)); end
1062
1085
 
1063
1086
  # Executes a command returning the contents of the command.
@@ -1105,7 +1128,7 @@ module Thor::Actions
1105
1128
  #
1106
1129
  # template "doc/README"
1107
1130
  #
1108
- # source://thor//lib/thor/actions/file_manipulation.rb#118
1131
+ # source://thor//lib/thor/actions/file_manipulation.rb#117
1109
1132
  def template(source, *args, &block); end
1110
1133
 
1111
1134
  # Run a thor command. A hash of options can be given and it's converted to
@@ -1129,9 +1152,8 @@ module Thor::Actions
1129
1152
  # source://thor//lib/thor/actions.rb#308
1130
1153
  def thor(command, *args); end
1131
1154
 
1132
- # Uncomment all lines matching a given regex. It will leave the space
1133
- # which existed before the comment hash in tact but will remove any spacing
1134
- # between the comment hash and the beginning of the line.
1155
+ # Uncomment all lines matching a given regex. Preserves indentation before
1156
+ # the comment hash and removes the hash and any immediate following space.
1135
1157
  #
1136
1158
  # ==== Parameters
1137
1159
  # path<String>:: path of the file to be changed
@@ -1142,7 +1164,7 @@ module Thor::Actions
1142
1164
  #
1143
1165
  # uncomment_lines 'config/initializers/session_store.rb', /active_record/
1144
1166
  #
1145
- # source://thor//lib/thor/actions/file_manipulation.rb#291
1167
+ # source://thor//lib/thor/actions/file_manipulation.rb#289
1146
1168
  def uncomment_lines(path, flag, *args); end
1147
1169
 
1148
1170
  protected
@@ -1157,25 +1179,25 @@ module Thor::Actions
1157
1179
 
1158
1180
  private
1159
1181
 
1160
- # source://thor//lib/thor/actions/file_manipulation.rb#348
1182
+ # source://thor//lib/thor/actions/file_manipulation.rb#346
1161
1183
  def capture(*args); end
1162
1184
 
1163
- # source://thor//lib/thor/actions/file_manipulation.rb#344
1185
+ # source://thor//lib/thor/actions/file_manipulation.rb#342
1164
1186
  def concat(string); end
1165
1187
 
1166
1188
  # Returns the value of attribute output_buffer.
1167
1189
  #
1168
- # source://thor//lib/thor/actions/file_manipulation.rb#339
1190
+ # source://thor//lib/thor/actions/file_manipulation.rb#337
1169
1191
  def output_buffer; end
1170
1192
 
1171
1193
  # Sets the attribute output_buffer
1172
1194
  #
1173
1195
  # @param value the value to set the attribute output_buffer to.
1174
1196
  #
1175
- # source://thor//lib/thor/actions/file_manipulation.rb#339
1197
+ # source://thor//lib/thor/actions/file_manipulation.rb#337
1176
1198
  def output_buffer=(_arg0); end
1177
1199
 
1178
- # source://thor//lib/thor/actions/file_manipulation.rb#352
1200
+ # source://thor//lib/thor/actions/file_manipulation.rb#350
1179
1201
  def with_output_buffer(buf = T.unsafe(nil)); end
1180
1202
 
1181
1203
  class << self
@@ -1187,9 +1209,9 @@ end
1187
1209
  # Thor::Actions#capture depends on what kind of buffer is used in ERB.
1188
1210
  # Thus CapturableERB fixes ERB to use String buffer.
1189
1211
  #
1190
- # source://thor//lib/thor/actions/file_manipulation.rb#364
1212
+ # source://thor//lib/thor/actions/file_manipulation.rb#362
1191
1213
  class Thor::Actions::CapturableERB < ::ERB
1192
- # source://thor//lib/thor/actions/file_manipulation.rb#365
1214
+ # source://thor//lib/thor/actions/file_manipulation.rb#363
1193
1215
  def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end
1194
1216
  end
1195
1217
 
@@ -1541,7 +1563,7 @@ class Thor::Argument
1541
1563
  # source://thor//lib/thor/parser/argument.rb#5
1542
1564
  def enum; end
1543
1565
 
1544
- # source://thor//lib/thor/parser/argument.rb#55
1566
+ # source://thor//lib/thor/parser/argument.rb#52
1545
1567
  def enum_to_s; end
1546
1568
 
1547
1569
  # Returns the value of attribute name.
@@ -1564,12 +1586,12 @@ class Thor::Argument
1564
1586
 
1565
1587
  # @return [Boolean]
1566
1588
  #
1567
- # source://thor//lib/thor/parser/argument.rb#42
1589
+ # source://thor//lib/thor/parser/argument.rb#39
1568
1590
  def required?; end
1569
1591
 
1570
1592
  # @return [Boolean]
1571
1593
  #
1572
- # source://thor//lib/thor/parser/argument.rb#46
1594
+ # source://thor//lib/thor/parser/argument.rb#43
1573
1595
  def show_default?; end
1574
1596
 
1575
1597
  # Returns the value of attribute type.
@@ -1577,22 +1599,22 @@ class Thor::Argument
1577
1599
  # source://thor//lib/thor/parser/argument.rb#5
1578
1600
  def type; end
1579
1601
 
1580
- # source://thor//lib/thor/parser/argument.rb#38
1602
+ # source://thor//lib/thor/parser/argument.rb#35
1581
1603
  def usage; end
1582
1604
 
1583
1605
  protected
1584
1606
 
1585
- # source://thor//lib/thor/parser/argument.rb#74
1607
+ # source://thor//lib/thor/parser/argument.rb#71
1586
1608
  def default_banner; end
1587
1609
 
1588
1610
  # @return [Boolean]
1589
1611
  #
1590
- # source://thor//lib/thor/parser/argument.rb#70
1612
+ # source://thor//lib/thor/parser/argument.rb#67
1591
1613
  def valid_type?(type); end
1592
1614
 
1593
1615
  # @raise [ArgumentError]
1594
1616
  #
1595
- # source://thor//lib/thor/parser/argument.rb#65
1617
+ # source://thor//lib/thor/parser/argument.rb#62
1596
1618
  def validate!; end
1597
1619
  end
1598
1620
 
@@ -2621,7 +2643,7 @@ class Thor::Group
2621
2643
  # Shortcut to invoke with padding and block handling. Use internally by
2622
2644
  # invoke and invoke_from_option class methods.
2623
2645
  #
2624
- # source://thor//lib/thor/group.rb#265
2646
+ # source://thor//lib/thor/group.rb#276
2625
2647
  def _invoke_for_class_method(klass, command = T.unsafe(nil), *args, &block); end
2626
2648
 
2627
2649
  class << self
@@ -2631,6 +2653,19 @@ class Thor::Group
2631
2653
  # source://thor//lib/thor/group.rb#161
2632
2654
  def class_options_help(shell, groups = T.unsafe(nil)); end
2633
2655
 
2656
+ # Checks if a specified command exists.
2657
+ #
2658
+ # ==== Parameters
2659
+ # command_name<String>:: The name of the command to check for existence.
2660
+ #
2661
+ # ==== Returns
2662
+ # Boolean:: +true+ if the command exists, +false+ otherwise.
2663
+ #
2664
+ # @return [Boolean]
2665
+ #
2666
+ # source://thor//lib/thor/group.rb#221
2667
+ def command_exists?(command_name); end
2668
+
2634
2669
  # The description for this Thor::Group. If none is provided, but a source root
2635
2670
  # exists, tries to find the USAGE one folder above it, otherwise searches
2636
2671
  # in the superclass.
@@ -2738,33 +2773,33 @@ class Thor::Group
2738
2773
  # The banner for this class. You can customize it if you are invoking the
2739
2774
  # thor class by another ways which is not the Thor::Runner.
2740
2775
  #
2741
- # source://thor//lib/thor/group.rb#238
2776
+ # source://thor//lib/thor/group.rb#249
2742
2777
  def banner; end
2743
2778
 
2744
- # source://thor//lib/thor/group.rb#248
2779
+ # source://thor//lib/thor/group.rb#259
2745
2780
  def baseclass; end
2746
2781
 
2747
- # source://thor//lib/thor/group.rb#252
2782
+ # source://thor//lib/thor/group.rb#263
2748
2783
  def create_command(meth); end
2749
2784
 
2750
- # source://thor//lib/thor/group.rb#252
2785
+ # source://thor//lib/thor/group.rb#263
2751
2786
  def create_task(meth); end
2752
2787
 
2753
2788
  # The method responsible for dispatching given the args.
2754
2789
  #
2755
2790
  # @yield [instance]
2756
2791
  #
2757
- # source://thor//lib/thor/group.rb#217
2792
+ # source://thor//lib/thor/group.rb#228
2758
2793
  def dispatch(command, given_args, given_opts, config); end
2759
2794
 
2760
2795
  # Represents the whole class as a command.
2761
2796
  #
2762
- # source://thor//lib/thor/group.rb#243
2797
+ # source://thor//lib/thor/group.rb#254
2763
2798
  def self_command; end
2764
2799
 
2765
2800
  # Represents the whole class as a command.
2766
2801
  #
2767
- # source://thor//lib/thor/group.rb#243
2802
+ # source://thor//lib/thor/group.rb#254
2768
2803
  def self_task; end
2769
2804
  end
2770
2805
  end
@@ -3277,14 +3312,15 @@ class Thor::Options < ::Thor::Arguments
3277
3312
  # source://thor//lib/thor/parser/options.rb#244
3278
3313
  def normalize_switch(arg); end
3279
3314
 
3280
- # Parse boolean values which can be given as --foo=true, --foo or --no-foo.
3315
+ # Parse boolean values which can be given as --foo=true or --foo for true values, or
3316
+ # --foo=false, --no-foo or --skip-foo for false values.
3281
3317
  #
3282
- # source://thor//lib/thor/parser/options.rb#255
3318
+ # source://thor//lib/thor/parser/options.rb#256
3283
3319
  def parse_boolean(switch); end
3284
3320
 
3285
3321
  # Parse the value at the peek analyzing if it requires an input or not.
3286
3322
  #
3287
- # source://thor//lib/thor/parser/options.rb#273
3323
+ # source://thor//lib/thor/parser/options.rb#274
3288
3324
  def parse_peek(switch, option); end
3289
3325
 
3290
3326
  # @return [Boolean]
@@ -3479,15 +3515,15 @@ class Thor::Shell::Basic
3479
3515
  # Readline.
3480
3516
  #
3481
3517
  # ==== Example
3482
- # ask("What is your name?")
3518
+ # ask("What is your name?")
3483
3519
  #
3484
- # ask("What is the planet furthest from the sun?", :default => "Pluto")
3520
+ # ask("What is the planet furthest from the sun?", :default => "Neptune")
3485
3521
  #
3486
- # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
3522
+ # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
3487
3523
  #
3488
- # ask("What is your password?", :echo => false)
3524
+ # ask("What is your password?", :echo => false)
3489
3525
  #
3490
- # ask("Where should the file be saved?", :path => true)
3526
+ # ask("Where should the file be saved?", :path => true)
3491
3527
  #
3492
3528
  # source://thor//lib/thor/shell/basic.rb#80
3493
3529
  def ask(statement, *args); end
@@ -3540,7 +3576,7 @@ class Thor::Shell::Basic
3540
3576
  # source://thor//lib/thor/shell/basic.rb#31
3541
3577
  def mute?; end
3542
3578
 
3543
- # Make a question the to user and returns true if the user replies "n" or
3579
+ # Asks the user a question and returns true if the user replies "n" or
3544
3580
  # "no".
3545
3581
  #
3546
3582
  # @return [Boolean]
@@ -3596,7 +3632,7 @@ class Thor::Shell::Basic
3596
3632
  # are passed straight to puts (behavior got from Highline).
3597
3633
  #
3598
3634
  # ==== Example
3599
- # say("I know you knew that.")
3635
+ # say("I know you knew that.")
3600
3636
  #
3601
3637
  # source://thor//lib/thor/shell/basic.rb#98
3602
3638
  def say(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
@@ -3606,7 +3642,7 @@ class Thor::Shell::Basic
3606
3642
  # are passed straight to puts (behavior got from Highline).
3607
3643
  #
3608
3644
  # ==== Example
3609
- # say_error("error: something went wrong")
3645
+ # say_error("error: something went wrong")
3610
3646
  #
3611
3647
  # source://thor//lib/thor/shell/basic.rb#115
3612
3648
  def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
@@ -3625,7 +3661,7 @@ class Thor::Shell::Basic
3625
3661
  # source://thor//lib/thor/shell/basic.rb#258
3626
3662
  def set_color(string, *_arg1); end
3627
3663
 
3628
- # Make a question the to user and returns true if the user replies "y" or
3664
+ # Asks the user a question and returns true if the user replies "y" or
3629
3665
  # "yes".
3630
3666
  #
3631
3667
  # @return [Boolean]
@@ -3873,7 +3909,7 @@ class Thor::Shell::HTML < ::Thor::Shell::Basic
3873
3909
  # Ask something to the user and receives a response.
3874
3910
  #
3875
3911
  # ==== Example
3876
- # ask("What is your name?")
3912
+ # ask("What is your name?")
3877
3913
  #
3878
3914
  # TODO: Implement #ask for Thor::Shell::HTML
3879
3915
  #
@@ -3998,13 +4034,10 @@ class Thor::Shell::TablePrinter < ::Thor::Shell::ColumnPrinter
3998
4034
 
3999
4035
  private
4000
4036
 
4001
- # source://thor//lib/thor/shell/table_printer.rb#120
4002
- def as_unicode; end
4003
-
4004
4037
  # source://thor//lib/thor/shell/table_printer.rb#72
4005
4038
  def format_cell(column, row_size, index); end
4006
4039
 
4007
- # source://thor//lib/thor/shell/table_printer.rb#115
4040
+ # source://thor//lib/thor/shell/table_printer.rb#113
4008
4041
  def indentation; end
4009
4042
 
4010
4043
  # source://thor//lib/thor/shell/table_printer.rb#47
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `unicode-display_width` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem unicode-display_width`.
6
6
 
7
+
7
8
  # source://unicode-display_width//lib/unicode/display_width/constants.rb#3
8
9
  module Unicode; end
9
10