This project is a Rust-based command-line argument parser. It provides functionality to execute shell commands, including a dry-run mode and a help message.
- Command Execution: Execute shell commands passed as arguments.
- Dry-Run Mode: Simulate command execution without actually running the command.
- Help Message: Display usage instructions.
To run the application, use the following command:
cargo run -- <command>--run <command>: Execute the command in the shell.--dry-run <command>: Dry run mode, command will not be executed.--help: Display the help message.
cargo run -- echo "Hello, World!"cargo run -- --dry-run echo "Hello, World!"cargo run -- --helpTo run the tests, use the following command:
cargo testThis project uses the rstest crate for parameterized tests.