Expand description
Shared type definitions for the CLI
This module contains type definitions that are shared across multiple layers of the CLI (commands, handlers, services).
§Organization
- cli: CLI command types (Clap Args, Commands enum)
- credentials: Authentication credentials types
- project: Project configuration types (mecha10.json)
- simulation: Simulation configuration types (runtime and project-level)
§Design Principles
- Domain-focused: Types represent domain concepts, not CLI concerns
- Shared: Only types used in multiple places belong here
- Serializable: Most types derive Serialize/Deserialize
- Well-documented: All public types have rustdoc comments
Re-exports§
pub use cli::Cli;pub use cli::Commands;pub use credentials::AuthError;pub use credentials::Credentials;pub use credentials::DeviceCodeResponse;pub use credentials::DeviceCodeStatus;pub use project::load_project_config;pub use project::DashboardConfig;pub use project::NodeEntry;pub use project::ProjectConfig;pub use project::EnvironmentConfig;pub use project::EnvironmentsConfig;pub use simulation::SimulationConfig;
Modules§
- cli
- CLI type definitions
- credentials
- Credentials type definitions for CLI authentication
- project
- Project configuration types
- simulation
- Simulation configuration types