Expand description
Run Command Presentation Module
This module implements the CLI presentation layer for the run command, handling argument processing and user interaction.
§Architecture
The run command presentation layer follows the DDD pattern, orchestrating
the application layer’s RunCommandHandler while providing user-friendly
output and error handling.
§Components
errors- Presentation layer error types with.help()methodshandler- Main command handler orchestrating the workflow
§Usage Example
§Basic Usage
ⓘ
use std::path::Path;
use std::sync::Arc;
use torrust_tracker_deployer_lib::bootstrap::Container;
use torrust_tracker_deployer_lib::presentation::cli::dispatch::ExecutionContext;
use torrust_tracker_deployer_lib::presentation::cli::controllers::run;
use torrust_tracker_deployer_lib::presentation::cli::views::VerbosityLevel;
let container = Container::new(VerbosityLevel::Normal, Path::new("."));
let context = ExecutionContext::new(Arc::new(container), global_args);
// Call the run handler
let result = context
.container()
.create_run_controller()
.execute("my-environment")
.await;Re-exports§
pub use handler::RunCommandController;pub use errors::RunSubcommandError;