Table of Contents

Enum ExitCode

Namespace
Ploch.CommandLine.Spectre.Commands
Assembly
Ploch.CommandLine.Spectre.dll

Exit codes returned by commands to the operating system.

public enum ExitCode

Fields

Cancelled = 130

Represents a command that was cancelled before completing. Matches the conventional shell exit code for termination by SIGINT (128 + 2).

Error = 1

Represents an error during the execution of a command. Also the exit code of a failure that happened before the application's host existed, such as an exception thrown while building it.

InvalidInput = 2

Represents an invalid input provided to a command. Returned by a command that rejects the input it was given, and by the application when Spectre.Console.Cli could not parse the command line, could not bind the settings, or the settings failed validation; see ConfigureCommandApp(Action<IConfigurator>).

Success = 0

Represents a successful execution of a command.