Skip to content

Instantly share code, notes, and snippets.

@durka
Created April 3, 2018 18:20
Show Gist options
  • Save durka/394376af7acdb5958aa5bbd56e94c0ec to your computer and use it in GitHub Desktop.
Save durka/394376af7acdb5958aa5bbd56e94c0ec to your computer and use it in GitHub Desktop.
$ cargo script -D subprocess -e 'subprocess::Exec::cmd("rg").args(&["x", "not_exist.rs"]).stdout(subprocess::Redirection::Pipe).stderr(subprocess::Redirection::Merge).capture()?.stdout_str()'
"not_exist.rs: No such file or directory (os error 2)\nNo files were searched, which means ripgrep probably applied a filter you didn\'t expect. Try running again with --debug.\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment