module Commands::CommandMixin::ClassMethods

Every ‘useful’ Command class should override the following (except terminal?)

Public Instance Methods

command_name() click to toggle source
# File lib/gdsh/command_mixin.rb, line 24
def command_name
  ''
end
description() click to toggle source
# File lib/gdsh/command_mixin.rb, line 36
def description
  (command_name + parameters + ":\n  ").colorize(:green) + 
  function.colorize(:yellow)
end
function() click to toggle source
# File lib/gdsh/command_mixin.rb, line 28
def function
  ''
end
parameters() click to toggle source
# File lib/gdsh/command_mixin.rb, line 32
def parameters
  ''
end
terminal?() click to toggle source
# File lib/gdsh/command_mixin.rb, line 41
def terminal?
  false
end