| Crates.io | commandcrafter |
| lib.rs | commandcrafter |
| version | 0.4.2 |
| created_at | 2024-02-15 23:46:32.586173+00 |
| updated_at | 2024-04-13 22:12:16.605891+00 |
| description | This crate is used to execute shell commands using rust convenience |
| homepage | https://github.com/div-styl/commandcrafter |
| repository | https://github.com/div-styl/commandcrafter |
| max_upload_size | |
| id | 1141719 |
| size | 25,510 |
CommandCrafter is a Rust crate designed to simplify interaction with the console and facilitate the creation of automated programs. It provides a convenient interface for executing commands and capturing their output. Additionally, it offers functionality to write this output to a file, enabling easy logging and further processing
/filename.logAdd this crate to your Cargo.toml file:
cargo add commandcrafter
for normal use check this example:
use commandcrafter::execute::Execute;
fn main() {
let output = Execute::run("du", &["-h", "--max-depth=1", "."]);
Execute::print_into_console(output);
}
for more Usage check docs
Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.