diff options
Diffstat (limited to 'CLAUDE.md')
-rw-r--r-- | CLAUDE.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -40,12 +40,14 @@ The application uses a type-safe command architecture with Zig unions and enums: - **`OutputCapture`**: Buffers command output for redirection to files ### Modular Command Architecture -The project now uses a fully modularized command architecture where each DOS command is implemented in its own file: +The project uses a fully modularized command architecture with unified context management: - **`src/cmd/`**: Directory containing individual command implementations -- **Command Pattern**: Each command implements an `eval()` method with consistent signature +- **`CommandContext`**: Unified context struct containing allocator, I/O capture, and execution functions +- **Command Pattern**: Each command implements `eval(command, ctx: CommandContext)` with consistent signature - **Type Safety**: Commands are strongly typed Zig structs with compile-time guarantees - **Shared Types**: Common types defined in `src/cmd/lib/types.zig` for consistency +- **Clean Architecture**: All commands (Builtin, External, Redirect, Pipe) use the same modular pattern ### Implementation Status |