Skip to content

Class CliApplication

Namespace: Cephalon.Cli
Assembly: Cephalon.Cli.dll

Hosts the main command-dispatch entry point for the Cephalon CLI.

public static class CliApplication

objectCliApplication

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

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)

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.

Task<int>

The process exit code.