C# Class GitSharp.CLI.CommandRef

Description of a command subcommand. These descriptions are lightweight compared to creating a command instance and are therefore suitable for catalogs of "known" commands without linking the command's implementation and creating a dummy instance of the command.
显示文件 Open project: nestalk/GitSharp Class Usage Examples

Public Methods

Method Description
CommandRef ( TextBuiltin clazz ) : System
CommandRef ( TextBuiltin clazz, String cn ) : System
Create ( ) : TextBuiltin

Returns a new instance of the command implementation.

getImplementationClassName ( ) : String

Returns the name of the class which implements this command.

getName ( ) : String

Returns the friendly command name. The command as invoked from the command line.

getUsage ( ) : String

Returns a one line description of the command's feature set.

isCommon ( ) : bool

Returns true if this command is considered to be commonly used.

isComplete ( ) : bool

Returns true if this command is considered to be completed.

Method Details

CommandRef() public method

public CommandRef ( TextBuiltin clazz ) : System
clazz TextBuiltin
return System

CommandRef() public method

public CommandRef ( TextBuiltin clazz, String cn ) : System
clazz TextBuiltin
cn String
return System

Create() public method

Returns a new instance of the command implementation.
public Create ( ) : TextBuiltin
return TextBuiltin

getImplementationClassName() public method

Returns the name of the class which implements this command.
public getImplementationClassName ( ) : String
return String

getName() public method

Returns the friendly command name. The command as invoked from the command line.
public getName ( ) : String
return String

getUsage() public method

Returns a one line description of the command's feature set.
public getUsage ( ) : String
return String

isCommon() public method

Returns true if this command is considered to be commonly used.
public isCommon ( ) : bool
return bool

isComplete() public method

Returns true if this command is considered to be completed.
public isComplete ( ) : bool
return bool