enumExitCode
enum ExitCode: int
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
What the command tells the shell about how the run went.
Cases§
case Success = 0case FindingsReported = 1case InvalidCommandLine = 2case SourceUnreadable = 3Test cases 12§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 11
CatalogCommandTest::testRunAnswersTheHelpcallsCatalogCommandTest::testRunCatalogsTheNamedPathOntoStandardOutputcallsCatalogCommandTest::testRunDoesNotLoadConfigurationWhenPrintingHelpcallsCatalogCommandTest::testRunLoadsCatalogSettingsAndAllowsCliOverridescallsCatalogCommandTest::testRunReportsAnInvalidCommandLinecallsCatalogCommandTest::testRunReportsAPathItCannotReadcallsCatalogCommandTest::testRunReportsConfigurationErrorscallsCatalogCommandTest::testRunReportsMissingConfigurationAsAnInvalidCommandLinecallsCatalogCommandTest::testStatusReportsFindingsOnlyWhenAskedTocallsCommandResultTest::testFailureWritesOnlyToStandardErrorAndEndsWithANewlinecallsCommandResultTest::testOkWritesOnlyToStandardOutputcalls
Relations§
Constant reads 6
- class-const SqlCatalog\Cli\CatalogCommand::run() packages/sql-catalog/src/Cli/CatalogCommand.php:58
- class-const SqlCatalog\Cli\CatalogCommand::run() packages/sql-catalog/src/Cli/CatalogCommand.php:60
- class-const SqlCatalog\Cli\CatalogCommand::status() packages/sql-catalog/src/Cli/CatalogCommand.php:151
- class-const SqlCatalog\Cli\CatalogCommand::status() packages/sql-catalog/src/Cli/CatalogCommand.php:155
- class-const SqlCatalog\Cli\CatalogCommand::status() packages/sql-catalog/src/Cli/CatalogCommand.php:159
- class-const SqlCatalog\Cli\CommandResult::ok() packages/sql-catalog/src/Cli/CommandResult.php:34