rust-shell-script / rust_cmd_lib

Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way
https://docs.rs/cmd_lib/
Apache License 2.0
1.05k stars 37 forks source link

Command "echo" missing in first example #1

Closed willi-kappler closed 5 years ago

willi-kappler commented 5 years ago

In the first example:

run_cmd!("hello, {}", name);

Shouldn't that be:

run_cmd!("echo hello, {}", name);

rust-shell-script commented 5 years ago

Thanks for reporting this. I also made some changes to parse arguments correctly, if we want to echo something with spaces.