Expand description
Centralized path definitions for the CLI
All hardcoded paths should be defined here to ensure consistency and make it easy to update paths across the codebase.
§Organization
- Project paths: Paths relative to project root (mecha10.json location)
- User paths: Paths in user’s home directory (~/.mecha10)
- Docker paths: Paths used inside Docker containers
- Framework paths: Paths within the mecha10 framework source
Modules§
- config
- Configuration paths within project
- container
- Paths used inside Docker containers
- docker
- Docker-related paths within project
- env
- Environment files
- framework
- Paths within the mecha10 framework source
- meta
- Meta files (README, gitignore, etc.)
- model
- Model files within a model directory
- project
- Project directories
- rust
- Rust project files
- urls
- External service URLs
- user
- User-level paths in home directory
Constants§
- PROJECT_
CONFIG - Project configuration file
Functions§
- find_
project_ root - Get the project root by finding mecha10.json
- is_
project_ dir - Check if a directory is a mecha10 project
- target_
path - Build a target output path
- target_
path_ with_ triple - Build a target output path with optional target triple