C# 클래스 cdcrush.lib.app.CliApp

파일 보기 프로젝트 열기: john32b/cdcrush.net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
flag_disable_user_stdout bool
flag_stdout_word_mode bool
onComplete Action
onStdErr Action
onStdIOReady Action
onStdOut Action
onStdOutWord Action
threads List

공개 메소드들

메소드 설명
CliApp ( string exec ) : System

Starts a CLI app in a new thread

exists ( string exePath ) : bool

Check to see if an executable exists / can be run

kill ( ) : void
quickStart ( string filename, string args = null, Action OnComplete = null ) : CliApp

Quickly create a CLI APP and return it

quickStartSync ( string exePath, string args = null ) : string[]
start ( string args = null, string workingDir = null ) : void

Start a thread in a new thread, it will keep going

비공개 메소드들

메소드 설명
captureWords ( ) : void

Start capturing words from the stdout stream and push them on the callback

메소드 상세

CliApp() 공개 메소드

Starts a CLI app in a new thread
public CliApp ( string exec ) : System
exec string Path to the executable
리턴 System

exists() 정적인 공개 메소드

Check to see if an executable exists / can be run
static public exists ( string exePath ) : bool
exePath string
리턴 bool

kill() 공개 메소드

public kill ( ) : void
리턴 void

quickStart() 정적인 공개 메소드

Quickly create a CLI APP and return it
static public quickStart ( string filename, string args = null, Action OnComplete = null ) : CliApp
filename string
args string
OnComplete Action
리턴 CliApp

quickStartSync() 정적인 공개 메소드

static public quickStartSync ( string exePath, string args = null ) : string[]
exePath string
args string
리턴 string[]

start() 공개 메소드

Start a thread in a new thread, it will keep going
public start ( string args = null, string workingDir = null ) : void
args string Arguments
workingDir string
리턴 void

프로퍼티 상세

flag_disable_user_stdout 공개적으로 프로퍼티

Set to true to disable ALL user stdout calls. Enable this if you want to pipe the stdout
public bool flag_disable_user_stdout
리턴 bool

flag_stdout_word_mode 공개적으로 프로퍼티

When some CLI apps don't flush their stdOut, capture it raw word by word. Access `onStdOutWord`
public bool flag_stdout_word_mode
리턴 bool

onComplete 공개적으로 프로퍼티

Called when the application exits. 0 = OK, 1 = Error, 2 = Could not run EXE
public Action onComplete
리턴 Action

onStdErr 공개적으로 프로퍼티

Pushes the STDERR as it happens from the app
public Action onStdErr
리턴 Action

onStdIOReady 공개적으로 프로퍼티

public Action onStdIOReady
리턴 Action

onStdOut 공개적으로 프로퍼티

Pushes the STDOUT as is happens from the app
public Action onStdOut
리턴 Action

onStdOutWord 공개적으로 프로퍼티

Valid only if you set `flag_stdout_word_mode` to true Pushes words read from the STDOUT
public Action onStdOutWord
리턴 Action

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

public static List threads
리턴 List