Improve external quoting logic (#3579)

* Add tests and improve quoting logic

* fmt

* Fix clippy ling

* Fix clippy ling
This commit is contained in:
JT
2021-06-09 08:59:53 +12:00
committed by GitHub
parent e9de4c08b0
commit a021b99614
5 changed files with 56 additions and 4 deletions

View File

@ -25,6 +25,15 @@ pub fn cococo() {
}
}
pub fn meow() {
let args: Vec<String> = args();
for arg in args.iter().skip(1) {
let contents = std::fs::read_to_string(arg).expect("Expected a filepath");
println!("{}", contents);
}
}
pub fn nonu() {
args().iter().skip(1).for_each(|arg| print!("{}", arg));
}