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

Methods

alias   aliases=   call   commands   complement   match?   new   pattern   set   split_command_line  

Attributes

aliases  [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)

Public Instance methods

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

[Validate]