C# Class IrcShark.Extensions.Terminal.TerminalCommand

By inheriting from the TerminalCommand class, you can write your own commands for the TerminalExtension.
Inheritance: System.MarshalByRefObject, ITerminalCommand
Exibir arquivo Open project: hapm/IrcShark

Public Methods

Method Description
AutoComplete ( CommandCall call, int paramIndex ) : string[]

Get autocomplete information for the given CommandCall.

Execute ( ) : void

Executes the command.

Implement this method with the behavior of your command.

Init ( TerminalExtension terminal ) : void

Gives the current TerminalExtension instance to the TerminalCommand instance.

Method Details

AutoComplete() public method

Get autocomplete information for the given CommandCall.
public AutoComplete ( CommandCall call, int paramIndex ) : string[]
call CommandCall The commandline to create auto complete info for.
paramIndex int The parameter to complete.
return string[]

Execute() public abstract method

Executes the command.
Implement this method with the behavior of your command.
public abstract Execute ( ) : void
return void

Init() public method

Gives the current TerminalExtension instance to the TerminalCommand instance.
public Init ( TerminalExtension terminal ) : void
terminal TerminalExtension The currently activ TerminalExtension instance.
return void