Update RBI files for thor.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
This commit is contained in:
parent
3bcc856581
commit
13ca7b6dd4
@ -4,6 +4,17 @@
|
||||
# This is an autogenerated file for types exported from the `thor` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem thor`.
|
||||
|
||||
module LCSDiff
|
||||
protected
|
||||
|
||||
def show_diff(destination, content); end
|
||||
|
||||
private
|
||||
|
||||
def diff_lcs_loaded?; end
|
||||
def output_diff_line(diff); end
|
||||
end
|
||||
|
||||
class Thor
|
||||
include ::Thor::Base
|
||||
include ::Thor::Invocation
|
||||
@ -14,6 +25,7 @@ class Thor
|
||||
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
||||
|
||||
class << self
|
||||
def at_least_one(*args, &block); end
|
||||
def check_unknown_options!(options = T.unsafe(nil)); end
|
||||
def check_unknown_options?(config); end
|
||||
def command_help(shell, command_name); end
|
||||
@ -23,9 +35,12 @@ class Thor
|
||||
def desc(usage, description, options = T.unsafe(nil)); end
|
||||
def disable_required_check!(*command_names); end
|
||||
def disable_required_check?(command); end
|
||||
def exclusive(*args, &block); end
|
||||
def help(shell, subcommand = T.unsafe(nil)); end
|
||||
def long_desc(long_description, options = T.unsafe(nil)); end
|
||||
def map(mappings = T.unsafe(nil), **kw); end
|
||||
def method_at_least_one(*args, &block); end
|
||||
def method_exclusive(*args, &block); end
|
||||
def method_option(name, options = T.unsafe(nil)); end
|
||||
def method_options(options = T.unsafe(nil)); end
|
||||
def option(name, options = T.unsafe(nil)); end
|
||||
@ -55,10 +70,15 @@ class Thor
|
||||
def find_command_possibilities(meth); end
|
||||
def find_task_possibilities(meth); end
|
||||
def initialize_added; end
|
||||
def method_at_least_one_option_names; end
|
||||
def method_exclusive_option_names; end
|
||||
def normalize_command_name(meth); end
|
||||
def normalize_task_name(meth); end
|
||||
def print_at_least_one_required_options(shell, command = T.unsafe(nil)); end
|
||||
def print_exclusive_options(shell, command = T.unsafe(nil)); end
|
||||
def retrieve_command_name(args); end
|
||||
def retrieve_task_name(args); end
|
||||
def sort_commands!(list); end
|
||||
def stop_on_unknown_option; end
|
||||
def subcommand_help(cmd); end
|
||||
def subtask_help(cmd); end
|
||||
@ -208,7 +228,9 @@ class Thor::Actions::InjectIntoFile < ::Thor::Actions::EmptyDirectory
|
||||
|
||||
protected
|
||||
|
||||
def content; end
|
||||
def replace!(regexp, string, force); end
|
||||
def replacement_present?; end
|
||||
def say_status(behavior, warning: T.unsafe(nil), color: T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
@ -223,8 +245,10 @@ class Thor::Argument
|
||||
def default; end
|
||||
def description; end
|
||||
def enum; end
|
||||
def enum_to_s; end
|
||||
def human_name; end
|
||||
def name; end
|
||||
def print_default; end
|
||||
def required; end
|
||||
def required?; end
|
||||
def show_default?; end
|
||||
@ -259,6 +283,7 @@ class Thor::Arguments
|
||||
def peek; end
|
||||
def shift; end
|
||||
def unshift(arg); end
|
||||
def validate_enum_value!(name, value, message); end
|
||||
|
||||
class << self
|
||||
def parse(*args); end
|
||||
@ -267,6 +292,7 @@ class Thor::Arguments
|
||||
end
|
||||
|
||||
Thor::Arguments::NUMERIC = T.let(T.unsafe(nil), Regexp)
|
||||
class Thor::AtLeastOneRequiredArgumentError < ::Thor::InvocationError; end
|
||||
|
||||
module Thor::Base
|
||||
include ::Thor::Invocation
|
||||
@ -308,6 +334,10 @@ module Thor::Base::ClassMethods
|
||||
def check_unknown_options; end
|
||||
def check_unknown_options!; end
|
||||
def check_unknown_options?(config); end
|
||||
def class_at_least_one(*args, &block); end
|
||||
def class_at_least_one_option_names; end
|
||||
def class_exclusive(*args, &block); end
|
||||
def class_exclusive_option_names; end
|
||||
def class_option(name, options = T.unsafe(nil)); end
|
||||
def class_options(options = T.unsafe(nil)); end
|
||||
def commands; end
|
||||
@ -341,7 +371,9 @@ module Thor::Base::ClassMethods
|
||||
def basename; end
|
||||
def build_option(name, options, scope); end
|
||||
def build_options(options, scope); end
|
||||
def built_option_names(target, opt = T.unsafe(nil), &block); end
|
||||
def class_options_help(shell, groups = T.unsafe(nil)); end
|
||||
def command_scope_member(name, options = T.unsafe(nil)); end
|
||||
def create_command(meth); end
|
||||
def create_task(meth); end
|
||||
def dispatch(command, given_args, given_opts, config); end
|
||||
@ -353,13 +385,16 @@ module Thor::Base::ClassMethods
|
||||
def is_thor_reserved_word?(word, type); end
|
||||
def method_added(meth); end
|
||||
def print_options(shell, options, group_name = T.unsafe(nil)); end
|
||||
def register_options_relation_for(target, relation, *args, &block); end
|
||||
end
|
||||
|
||||
class Thor::Command < ::Struct
|
||||
def initialize(name, description, long_description, usage, options = T.unsafe(nil)); end
|
||||
def initialize(name, description, long_description, wrap_long_description, usage, options = T.unsafe(nil), options_relation = T.unsafe(nil)); end
|
||||
|
||||
def formatted_usage(klass, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
||||
def hidden?; end
|
||||
def method_at_least_one_option_names; end
|
||||
def method_exclusive_option_names; end
|
||||
def run(instance, args = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
@ -396,6 +431,7 @@ class Thor::CoreExt::HashWithIndifferentAccess < ::Hash
|
||||
def replace(other_hash); end
|
||||
def reverse_merge(other); end
|
||||
def reverse_merge!(other_hash); end
|
||||
def slice(*keys); end
|
||||
def to_hash; end
|
||||
def values_at(*indices); end
|
||||
|
||||
@ -418,6 +454,7 @@ end
|
||||
|
||||
Thor::DynamicTask = Thor::DynamicCommand
|
||||
class Thor::Error < ::StandardError; end
|
||||
class Thor::ExclusiveArgumentError < ::Thor::InvocationError; end
|
||||
|
||||
class Thor::Group
|
||||
include ::Thor::Base
|
||||
@ -561,10 +598,6 @@ class Thor::NestedContext
|
||||
def push; end
|
||||
end
|
||||
|
||||
class Thor::NoKwargSpellChecker < ::DidYouMean::SpellChecker
|
||||
def initialize(dictionary); end
|
||||
end
|
||||
|
||||
class Thor::Option < ::Thor::Argument
|
||||
def initialize(name, options = T.unsafe(nil)); end
|
||||
|
||||
@ -579,6 +612,7 @@ class Thor::Option < ::Thor::Argument
|
||||
def lazy_default; end
|
||||
def numeric?; end
|
||||
def repeatable; end
|
||||
def show_default?; end
|
||||
def string?; end
|
||||
def switch_name; end
|
||||
def usage(padding = T.unsafe(nil)); end
|
||||
@ -591,6 +625,10 @@ class Thor::Option < ::Thor::Argument
|
||||
def validate!; end
|
||||
def validate_default_type!; end
|
||||
|
||||
private
|
||||
|
||||
def normalize_aliases(aliases); end
|
||||
|
||||
class << self
|
||||
def parse(key, value); end
|
||||
end
|
||||
@ -599,8 +637,10 @@ end
|
||||
Thor::Option::VALID_TYPES = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class Thor::Options < ::Thor::Arguments
|
||||
def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil)); end
|
||||
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
|
||||
|
||||
def check_at_least_one!; end
|
||||
def check_exclusive!; end
|
||||
def check_unknown!; end
|
||||
def parse(args); end
|
||||
def peek; end
|
||||
@ -614,6 +654,7 @@ class Thor::Options < ::Thor::Arguments
|
||||
def current_is_switch?; end
|
||||
def current_is_switch_formatted?; end
|
||||
def current_is_value?; end
|
||||
def names_to_switch_names(names = T.unsafe(nil)); end
|
||||
def normalize_switch(arg); end
|
||||
def parse_boolean(switch); end
|
||||
def parse_peek(switch, option); end
|
||||
@ -681,20 +722,15 @@ class Thor::Shell::Basic
|
||||
def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
|
||||
def say_status(status, message, log_status = T.unsafe(nil)); end
|
||||
def set_color(string, *_arg1); end
|
||||
def terminal_width; end
|
||||
def yes?(statement, color = T.unsafe(nil)); end
|
||||
|
||||
protected
|
||||
|
||||
def answer_match(possibilities, answer, case_insensitive); end
|
||||
def as_unicode; end
|
||||
def ask_filtered(statement, color, options); end
|
||||
def ask_simply(statement, color, options); end
|
||||
def can_display_colors?; end
|
||||
def dynamic_width; end
|
||||
def dynamic_width_stty; end
|
||||
def dynamic_width_tput; end
|
||||
def file_collision_help; end
|
||||
def file_collision_help(block_given); end
|
||||
def git_merge_tool; end
|
||||
def is?(value); end
|
||||
def lookup_color(color); end
|
||||
@ -705,13 +741,12 @@ class Thor::Shell::Basic
|
||||
def show_diff(destination, content); end
|
||||
def stderr; end
|
||||
def stdout; end
|
||||
def truncate(string, width); end
|
||||
def unix?; end
|
||||
end
|
||||
|
||||
Thor::Shell::Basic::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer)
|
||||
|
||||
class Thor::Shell::Color < ::Thor::Shell::Basic
|
||||
include ::LCSDiff
|
||||
|
||||
def set_color(string, *colors); end
|
||||
|
||||
protected
|
||||
@ -719,9 +754,6 @@ class Thor::Shell::Color < ::Thor::Shell::Basic
|
||||
def are_colors_disabled?; end
|
||||
def are_colors_supported?; end
|
||||
def can_display_colors?; end
|
||||
def diff_lcs_loaded?; end
|
||||
def output_diff_line(diff); end
|
||||
def show_diff(destination, content); end
|
||||
end
|
||||
|
||||
Thor::Shell::Color::BLACK = T.let(T.unsafe(nil), String)
|
||||
@ -743,16 +775,23 @@ Thor::Shell::Color::RED = T.let(T.unsafe(nil), String)
|
||||
Thor::Shell::Color::WHITE = T.let(T.unsafe(nil), String)
|
||||
Thor::Shell::Color::YELLOW = T.let(T.unsafe(nil), String)
|
||||
|
||||
class Thor::Shell::ColumnPrinter
|
||||
def initialize(stdout, options = T.unsafe(nil)); end
|
||||
|
||||
def options; end
|
||||
def print(array); end
|
||||
def stdout; end
|
||||
end
|
||||
|
||||
class Thor::Shell::HTML < ::Thor::Shell::Basic
|
||||
include ::LCSDiff
|
||||
|
||||
def ask(statement, color = T.unsafe(nil)); end
|
||||
def set_color(string, *colors); end
|
||||
|
||||
protected
|
||||
|
||||
def can_display_colors?; end
|
||||
def diff_lcs_loaded?; end
|
||||
def output_diff_line(diff); end
|
||||
def show_diff(destination, content); end
|
||||
end
|
||||
|
||||
Thor::Shell::HTML::BLACK = T.let(T.unsafe(nil), String)
|
||||
@ -773,6 +812,43 @@ Thor::Shell::HTML::RED = T.let(T.unsafe(nil), String)
|
||||
Thor::Shell::HTML::WHITE = T.let(T.unsafe(nil), String)
|
||||
Thor::Shell::HTML::YELLOW = T.let(T.unsafe(nil), String)
|
||||
Thor::Shell::SHELL_DELEGATED_METHODS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class Thor::Shell::TablePrinter < ::Thor::Shell::ColumnPrinter
|
||||
def initialize(stdout, options = T.unsafe(nil)); end
|
||||
|
||||
def print(array); end
|
||||
|
||||
private
|
||||
|
||||
def as_unicode; end
|
||||
def format_cell(column, row_size, index); end
|
||||
def indentation; end
|
||||
def prepare(array); end
|
||||
def print_border_separator; end
|
||||
def truncate(string); end
|
||||
end
|
||||
|
||||
Thor::Shell::TablePrinter::BORDER_SEPARATOR = T.let(T.unsafe(nil), Symbol)
|
||||
|
||||
module Thor::Shell::Terminal
|
||||
class << self
|
||||
def terminal_width; end
|
||||
def unix?; end
|
||||
|
||||
private
|
||||
|
||||
def dynamic_width; end
|
||||
def dynamic_width_stty; end
|
||||
def dynamic_width_tput; end
|
||||
end
|
||||
end
|
||||
|
||||
Thor::Shell::Terminal::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer)
|
||||
|
||||
class Thor::Shell::WrappedPrinter < ::Thor::Shell::ColumnPrinter
|
||||
def print(message); end
|
||||
end
|
||||
|
||||
Thor::TEMPLATE_EXTNAME = T.let(T.unsafe(nil), String)
|
||||
Thor::THOR_RESERVED_WORDS = T.let(T.unsafe(nil), Array)
|
||||
Thor::Task = Thor::Command
|
Loading…
x
Reference in New Issue
Block a user