C# Class GitSharp.CLI.CommandCatalog

List of all commands known by the command line tools. Commands are implementations of the TextBuiltin class, with a required command attribute to insert additional documentation and add some extra information such as if the command is common and completed. Commands may be registered by adding them to the Commands.xml file. The Commands.xml file should contain: a. The command name including namespace. b. The website address for command specific online help.(optional)
Afficher le fichier Open project: stschake/GitSharp Class Usage Examples

Méthodes publiques

Méthode Description
All ( ) : IList

Returns all known commands, sorted by command name.

CommandCatalog ( ) : System

Creates the command catalog from the Commands.xml file.

Common ( ) : List

Returns all common commands, sorted by command name.

Complete ( ) : List

Returns all complete commands, sorted by command name.

Get ( String name ) : CommandRef

Locates a single command by its user friendly name.

Incomplete ( ) : List

Returns all incomplete commands, sorted by command name.

Load ( String commandName, String commandHelp ) : void

Create and loads the command name into the command catalog.

StartsWith ( String s ) : List

Returns all commands starting with a specified string, sorted by command name.

Private Methods

Méthode Description
toSortedArray ( List c ) : List

Sorts a list of specified commands by command name.

Method Details

All() public méthode

Returns all known commands, sorted by command name.
public All ( ) : IList
Résultat IList

CommandCatalog() public méthode

Creates the command catalog from the Commands.xml file.
public CommandCatalog ( ) : System
Résultat System

Common() public méthode

Returns all common commands, sorted by command name.
public Common ( ) : List
Résultat List

Complete() public méthode

Returns all complete commands, sorted by command name.
public Complete ( ) : List
Résultat List

Get() public méthode

Locates a single command by its user friendly name.
public Get ( String name ) : CommandRef
name String Specifies the name of the command.
Résultat CommandRef

Incomplete() public méthode

Returns all incomplete commands, sorted by command name.
public Incomplete ( ) : List
Résultat List

Load() public méthode

Create and loads the command name into the command catalog.
public Load ( String commandName, String commandHelp ) : void
commandName String Specifies the command name to load.
commandHelp String Specifies the command's website for faster reference.
Résultat void

StartsWith() public méthode

Returns all commands starting with a specified string, sorted by command name.
public StartsWith ( String s ) : List
s String
Résultat List