printable_shell_command
Rust port of: https://github.com/lgarron/printable-shell-command
A helper library to print shell commands.
The goal is to make it easy to print commands that are being run by a program, in a way that makes it easy and safe for a user to copy-and-paste.
Examples
Using Command directly
use Command;
use ShellPrintable;
Prints:
echo \
'#hi'
Using PrintableShellCommand to group args
use ;
Prints:
ffmpeg \
-i './test/My video.mp4' \
-filter:v 'setpts=2.0*PTS' \
-filter:a atempo=0.5 \
'./test/My video (slow-mo).mov'