C# 클래스 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)
파일 보기 프로젝트 열기: stschake/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
toSortedArray ( List c ) : List

Sorts a list of specified commands by command name.

메소드 상세

All() 공개 메소드

Returns all known commands, sorted by command name.
public All ( ) : IList
리턴 IList

CommandCatalog() 공개 메소드

Creates the command catalog from the Commands.xml file.
public CommandCatalog ( ) : System
리턴 System

Common() 공개 메소드

Returns all common commands, sorted by command name.
public Common ( ) : List
리턴 List

Complete() 공개 메소드

Returns all complete commands, sorted by command name.
public Complete ( ) : List
리턴 List

Get() 공개 메소드

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

Incomplete() 공개 메소드

Returns all incomplete commands, sorted by command name.
public Incomplete ( ) : List
리턴 List

Load() 공개 메소드

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.
리턴 void

StartsWith() 공개 메소드

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