Class: Command

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/get/subcommand/command.rb

Overview

Base class for (sub)commands.

Direct Known Subclasses

Changelog, Commit, Complete, Describe, DescribeDocker, Get, Init, License, Tree

Instance Attribute Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



26
27
28
# File 'lib/get/subcommand/command.rb', line 26

def action
  @action
end

#descriptionObject

Returns the value of attribute description.



26
27
28
# File 'lib/get/subcommand/command.rb', line 26

def description
  @description
end

#option_parserObject

Returns the value of attribute option_parser.



26
27
28
# File 'lib/get/subcommand/command.rb', line 26

def option_parser
  @option_parser
end

#subcommandsObject

Returns the value of attribute subcommands.



26
27
28
# File 'lib/get/subcommand/command.rb', line 26

def subcommands
  @subcommands
end

#usageObject

Returns the value of attribute usage.



26
27
28
# File 'lib/get/subcommand/command.rb', line 26

def usage
  @usage
end