Class CliApplication
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Cli
Assembly: Cephalon.Cli.dll
Hosts the main command-dispatch entry point for the Cephalon CLI.
public static class CliApplicationInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”RunAsync(string[], TextWriter, TextWriter, CancellationToken)
Section titled “ RunAsync(string[], TextWriter, TextWriter, CancellationToken)”Runs the CLI for the supplied arguments and writers.
public static Task<int> RunAsync(string[] args, TextWriter output, TextWriter error, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”args string[]
The command-line arguments to execute.
output TextWriter
The writer used for standard output.
error TextWriter
The writer used for error output.
cancellationToken CancellationToken
A token that can cancel CLI execution.
Returns
Section titled “Returns”The process exit code.