commandshell.rb

Path: lib/mues/filters/commandshell.rb  (CVS)
Last Update: Sat Aug 18 22:54:10 -0700 2007

This file is a collection of classes which are used in the MUES command shell. The command shell is a command interface for user interaction with the MUES::Engine. This file contains the following classes:

MUES::CommandShell
The main command shell class; it is a derivative of MUES::InputFilter.
MUES::CommandShell::Command
The Flyweight class for all shell commands.
MUES::CommandShell::Context
A shell context class that is used by the shell to maintain command invocation context.
MUES::CommandShell::CommandTable
A command table for looking up command objects by name, synonym, or abbreviation.
MUES::CommandShell::Factory
An Abstract Factory object class that loads and maintains a registry of MUES::CommandShell::Command objects and creates MUES::CommandShell objects for MUES::User objects according to parameters specified at creation.
MUES::CommandShell::CommandParser
A parser class for parsing command specifications.

Synopsis

 require 'mues/filters/commandshell'

 MUES::CommandShell::Factory::configure( config )
 cshell = MUES::CommandShell::Factory::getShellForUser( user )

To Do

  • Perhaps add soundex matching if there are no abbrev matches for a command?

Subversion ID

$Id: commandshell.rb 1206 2004-05-09 21:25:11Z deveiant $

Authors

  • Michael Granger <ged@FaerieMUD.org>

Copyright

Copyright (c) 2000-2003 The FaerieMUD Consortium. All rights reserved.

This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Required files

sync   singleton   find   observer   mues/object   mues/mixins   mues/events   mues/exceptions   mues/user   mues/filters/inputfilter  

[Validate]