Module paths

Module paths 

Source
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