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 = 130Represents a command that was cancelled before completing. Matches the conventional shell exit code for termination by SIGINT (128 + 2).
Error = 1Represents 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 = 2Represents 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 = 0Represents a successful execution of a command.