Crates.io | phargs-cli |
lib.rs | phargs-cli |
version | 0.1.1 |
source | src |
created_at | 2024-06-22 01:56:03.149696 |
updated_at | 2024-06-22 02:05:29.068623 |
description | A library for sequence processing in Rust. |
homepage | |
repository | https://github.com/yamaura/phargs |
max_upload_size | |
id | 1280130 |
size | 6,688 |
This command line tool allows you to execute multiple commands provided via comma-separated arguments. It features a dry-run mode to preview commands without executing them.
To build the project, ensure you have Rust and Cargo installed on your system. Clone the repository and navigate to the project directory:
bash git clone https://github.com/yamaura/phargs.git cd phargs
Then, build the project using Cargo:
bash cargo build --release
The executable will be located in ./target/release/
.
To run multiple commands, use the following syntax:
bash phargs [OPTIONS] -w file1.txt,file2.txt -- echo {}
This will print commands like:
bash echo file1.txt echo file2.txt
It also handles command execution failures and will log errors appropriately. If a command fails, the tool exits with the command's exit code.