How rydnr/dry-wit works
Main Components
a. Core Framework Layer
• Core Runtime Environment
• Module Loading System
• Script Execution Pipeline
b. Module System
• Standard Modules (src/modules/*.dw)
• Extension Modules (src/modules/ext/*.dw)
• Theme System (themes/*.dwt)
c. Testing Framework
• Test Runner
• Individual Test Suites
d. Integration Layer
• Nix Integration
• System Dependencies
┌─────────────────────────────────────────────┐
• Client Script │
• ┬─────────────────────────┘
• ↓
┌─────────────────────────────────────────────┐
• dry-wit Runtime │
• ┤
• Module System │ Core Functions │ Themes │
• ┬───────────────┬────────────┬─────┘
• ↓ ↓ ↓
┌─────────────────┐ ┌──────────┐ ┌──────────┐
• Standard Modules│ │ Ext │ │ Theme │
• Modules │ │ Handlers │
• ┘ └──────────┘ └──────────┘
Key Relationships
a. Script Execution Flow:
• How a client script interfaces with dry-wit
• Module loading sequence
• Demonstrate error handling flow
b. Module Dependencies:
• Relationships between standard and extension modules
• Core module dependencies
c. Integration Points:
• Nix integration
• System dependency management
• External tool interactions
Implementation Details to Note
• Distinction between .dw module files and their implementation
• Role of the dry-wit executable
• Configuration paths and file locations
• Document system requirements (Bash 4+, required tools)