How plesiv/hac works
Main Components
a. Core System Components:
• CLI Interface Layer
• Configuration Management
• Site Handlers
• Language Processors
• Runner System
• Test Case Management
b. External Integrations:
• Competition Websites (Codeforces, Rosalind, SPOJ, Codechef)
• Local File System
• Package Management (pip)
Component Details
CLI Interface:
• Commands and flags
• Parse_cli.py functionality
• Version and help information display
Configuration Management:
• ~/.config/hac directory
• Language templates
• Runner configurations
Site Handlers:
• Supported platform (Codeforces, Rosalind, SPOJ, Codechef)
• Data flow for contest/problem fetching
Language Processing:
• Supported languages (C, C++, Python, Java, Pascal)
• Template management
Runner System:
• Compilation and execution workflows
• Debug and testing paths
Key Relationships to Highlight
• CLI → Core Processing: Command interpretation flow
• Core → Site Handlers: Problem fetching
• Core → Language Processors: Template selection
• Runner System → Language Processors: Execution flow
• Configuration → All Components: Settings distribution
Input Section:
• CLI commands
• Configuration files
• Website URLs
Processing Section:
• Command parsing
• Site handling
• Template processing
• Runner generation
Output Section:
• Directory structures
• Source files
• Runner scripts
• Test cases