diff --git a/README.md b/README.md index a81a8cc..e4d4a15 100644 --- a/README.md +++ b/README.md @@ -313,9 +313,12 @@ Key features: * Sends calculations to EventBridge for comprehensive sanity testing * Validates event routing to appropriate destinations (log groups, AWS Lambda functions, DynamoDB) * Allows developers to verify end-to-end flow of calculations, event handling, and data persistence - Execute the tool with: - `just run-drive-deposits-check-cmd-valid-send-events` - This streamlined approach significantly enhances development efficiency and system reliability testing. + +Execute the tool with: + +`just run-drive-deposits-check-cmd-valid-send-events` + +This streamlined approach significantly enhances development efficiency and system reliability testing. ###### Alias diff --git a/drive-deposits-check-cmd/src/main.rs b/drive-deposits-check-cmd/src/main.rs index 54577b7..984b478 100644 --- a/drive-deposits-check-cmd/src/main.rs +++ b/drive-deposits-check-cmd/src/main.rs @@ -12,26 +12,16 @@ use drive_deposits_check_cmd::portfolio::calculate::process_input; /// The data types used in this command are consistent with those in the actual services, ensuring a dependable method for rapid local verification of calculations. /// Use this command to verify calculations locally. /// -/// ### Sample Commands -/// Run the following commands through Cargo or directly with the binary: -/// -/// - To check the version: `cargo run -- --version` -/// -/// - For help: `cargo run -- --help` -/// -/// - To run with a sample input file: `cargo run -- tests/data/input.json` +/// To run with a sample input file: see the "Hybrid Integration Testing Tool" section in the README.md file. /// struct Args { - /// Input text + /// Input json file path #[arg(required(true))] json_request_file_path: String, } #[tokio::main] async fn main() -> Result<()> { - let rust_log = std::env::var("RUST_LOG")?; - println!("in drive-deposits-check-cmd RUST_LOG is {}", rust_log); - registry() .with(EnvFilter::try_from_default_env()?) // added in .cargo/config.tom .add_directive("drive_deposits_local=debug".parse()?)) diff --git a/justfile b/justfile index 385139c..19ce5bc 100644 --- a/justfile +++ b/justfile @@ -78,6 +78,9 @@ watch-build-drive-deposits-grpc-server: run-drive-deposits-check-cmd-valid: SEND_CAL_EVENTS="false" cargo ddcheck -- drive-deposits-rest-gateway-server/data/portfolio_request_valid.json +run-drive-deposits-check-cmd-help: + SEND_CAL_EVENTS="true" cargo ddcheck -- --help + run-drive-deposits-check-cmd-valid-send-events: SEND_CAL_EVENTS="true" cargo ddcheck -- drive-deposits-rest-gateway-server/data/portfolio_request_valid.json