Class: CLI::Kit::BaseCommand Abstract

Inherits:
Object
  • Object
show all
Extended by:
CommandHelp::ClassMethods
Includes:
CommandHelp
Defined in:
lib/cli/kit/base_command.rb

Overview

This class is abstract.

Constant Summary

Constants included from CommandHelp::ClassMethods

CommandHelp::ClassMethods::DEFAULT_HELP_SECTIONS

Class Method Summary collapse

Instance Method Summary collapse

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

: (Array args, String command_name) -> void



19
20
21
# File 'lib/cli/kit/base_command.rb', line 19

def call(args, command_name)
  new.call(args, command_name)
end

.defined?Boolean

: -> bool

Returns:



14
15
16
# File 'lib/cli/kit/base_command.rb', line 14

def defined?
  true
end

Instance Method Details

#has_subcommands?Boolean

: -> bool

Returns:



25
26
27
# File 'lib/cli/kit/base_command.rb', line 25

def has_subcommands?
  false
end