mirror of
https://github.com/nextcloud/server.git
synced 2026-10-25 12:15:44 +01:00
The API is inspired by modern command registration in Symfony/Console. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
29 lines
396 B
PHP
29 lines
396 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
// SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace OCP\Console;
|
|
|
|
/**
|
|
* Exit code of a command
|
|
*
|
|
* @since 35.0.0
|
|
*/
|
|
enum ExitCode: int {
|
|
/**
|
|
* @since 35.0.0
|
|
*/
|
|
case Success = 0;
|
|
/**
|
|
* @since 35.0.0
|
|
*/
|
|
case Failure = 1;
|
|
/**
|
|
* @since 35.0.0
|
|
*/
|
|
case Invalid = 2;
|
|
}
|