C# 클래스 GitSharp.CLI.TextBuiltin

Abstract command which can be invoked from the command line. Commands are configured with a single "current" repository and then the execute(String[]) method is invoked with the arguments that appear after the subcommand. Command constructors should perform as little work as possible as they may be invoked very early during process loading, and the command may not execute even though it was constructed.
파일 보기 프로젝트 열기: nestalk/GitSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
arguments List
options CmdParserOptionSet

보호된 프로퍼티들

프로퍼티 타입 설명
argWalk GitSharp.Core.RevWalk.RevWalk

공개 메소드들

메소드 설명
Execute ( String args ) : void

Parses the command line and runs the corresponding subcommand

GetCommand ( ) : Command

Returns the current command for lightweight referencing.

Init ( Core repo, DirectoryInfo path ) : void

Initializes a command for use including the repository and output support.

OnlineHelp ( ) : void

Opens the default webbrowser to display the command specific help.

ParseOptions ( string args ) : List

Parses the options for all subcommands and executes the corresponding code for each option.

Run ( String args ) : void

Provides an abstract layer to perform the action of this command. This method should only be invoked by the Execute(String[] args) method.

getCommandHelp ( ) : string

Used by CommandRef to get the command help website during initial creation.

getCommandName ( ) : string

Used by CommandRef to get the command name during initial creation.

보호된 메소드들

메소드 설명
die ( String why ) : Die

Generic method used to return an exception during fatal conditions.

비공개 메소드들

메소드 설명
Resolve ( string s ) : GitSharp.ObjectId

메소드 상세

Execute() 공개 메소드

Parses the command line and runs the corresponding subcommand
public Execute ( String args ) : void
args String Specifies the command line arguments passed after the command name.
리턴 void

GetCommand() 공개 메소드

Returns the current command for lightweight referencing.
public GetCommand ( ) : Command
리턴 Command

Init() 공개 메소드

Initializes a command for use including the repository and output support.
public Init ( Core repo, DirectoryInfo path ) : void
repo Core Specifies the repository to use.
path System.IO.DirectoryInfo
리턴 void

OnlineHelp() 공개 메소드

Opens the default webbrowser to display the command specific help.
public OnlineHelp ( ) : void
리턴 void

ParseOptions() 공개 메소드

Parses the options for all subcommands and executes the corresponding code for each option.
public ParseOptions ( string args ) : List
args string Specifies the string from the options to the end of the command line.
리턴 List

Run() 공개 추상적인 메소드

Provides an abstract layer to perform the action of this command. This method should only be invoked by the Execute(String[] args) method.
public abstract Run ( String args ) : void
args String
리턴 void

die() 보호된 정적인 메소드

Generic method used to return an exception during fatal conditions.
protected static die ( String why ) : Die
why String Specifies the textual explanation of why the exception was thrown.
리턴 Die

getCommandHelp() 공개 메소드

Used by CommandRef to get the command help website during initial creation.
public getCommandHelp ( ) : string
리턴 string

getCommandName() 공개 메소드

Used by CommandRef to get the command name during initial creation.
public getCommandName ( ) : string
리턴 string

프로퍼티 상세

argWalk 보호되어 있는 프로퍼티

RevWalk used during command line parsing, if it was required.
protected RevWalk,GitSharp.Core.RevWalk argWalk
리턴 GitSharp.Core.RevWalk.RevWalk

arguments 공개적으로 프로퍼티

Contains the remaining arguments after the options listed in the command line.
public List arguments
리턴 List

options 공개적으로 정적으로 프로퍼티

Custom OptionSet to allow special option handling rules such as --option dir
public static CmdParserOptionSet,GitSharp.CLI options
리턴 CmdParserOptionSet