Class: CLI::Kit::BaseCommand
- Inherits:
-
Object
- Object
- CLI::Kit::BaseCommand
- Extended by:
- CommandHelp::ClassMethods, T::Helpers, T::Sig
- Includes:
- CommandHelp
- Defined in:
- lib/cli/kit/base_command.rb
Constant Summary
Constants included from CommandHelp::ClassMethods
CommandHelp::ClassMethods::DEFAULT_HELP_SECTIONS
Class Method Summary collapse
Instance Method Summary collapse
Methods included from T::Sig
Methods included from T::Helpers
abstract!, final!, interface!, mixes_in_class_methods, sealed!
Methods included from CommandHelp::ClassMethods
_command_name, _desc, build_desc, build_examples, build_help, build_options, build_usage, command_name, desc, example, help_sections, long_desc, opts_class, usage
Methods included from CommandHelp
_max_desc_length, _tool_name, #call, #invoke, #invoke_wrapper
Class Method Details
.call(args, command_name) ⇒ Object
23 24 25 |
# File 'lib/cli/kit/base_command.rb', line 23 def call(args, command_name) new.call(args, command_name) end |
.defined? ⇒ Boolean
18 19 20 |
# File 'lib/cli/kit/base_command.rb', line 18 def defined? true end |
Instance Method Details
#has_subcommands? ⇒ Boolean
29 30 31 |
# File 'lib/cli/kit/base_command.rb', line 29 def has_subcommands? false end |