Class Termtter::Command
In: lib/termtter/command.rb
Parent: Object

Methods

Attributes

aliases  [RW] 
author  [RW] 
completion_proc  [RW] 
exec_proc  [RW] 
help  [RW] 
name  [RW] 

Public Class methods

args

  name:            (required) Symbol as command name
  aliases:         Array of command alias (ex. ['u', 'up'])
  exec_proc:       Proc for procedure of the command. If need the proc must return object for hook.
  completion_proc: Proc for input completion. The proc must return Array of candidates (Optional)
  help:            Help text for the command (Optional)
  author:          The author's name (Optional)

Public Instance methods

alias= :Symbol -> ()
set :Hash -> ()

[Validate]