@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
36 lines (35 loc) • 1.25 kB
JavaScript
;
/**
* ICommandContext - Core interface for CLI command execution context
*
* This interface provides a centralized, fully-hydrated context that commands
* receive when executed. Commands should NOT parse arguments or detect projects
* themselves - all that logic is handled by CommandContextFactory before commands run.
*
* Key Design Principles:
* - Commands receive hydrated Project[] array, never raw paths
* - All global options are parsed and typed
* - Worker pool abstraction for parallelization
* - Unified logging interface
* - Storage abstractions for input/output
*
* @see CommandContextFactory.ts for context creation
* @see ICommand.ts for command interface
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorCodes = void 0;
// ============================================================================
// ERROR CODES
// ============================================================================
/**
* Standard error codes for CLI exit status.
* Higher numbers indicate more severe errors.
*/
exports.ErrorCodes = {
SUCCESS: 0,
INIT_ERROR: 1,
VALIDATION_WARNING: 2,
VALIDATION_ERROR: 3,
VALIDATION_TESTFAIL: 4,
VALIDATION_INTERNALPROCESSINGERROR: 5,
};