Browse Source

Testing shlex

master
Julio Biason 2 years ago
parent
commit
1d699276ff
  1. 16
      shlextest/Cargo.lock
  2. 9
      shlextest/Cargo.toml
  3. 4
      shlextest/src/main.rs

16
shlextest/Cargo.lock generated

@ -0,0 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "shlex"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
[[package]]
name = "shlextest"
version = "0.1.0"
dependencies = [
"shlex",
]

9
shlextest/Cargo.toml

@ -0,0 +1,9 @@
[package]
name = "shlextest"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
shlex = "1.1.0"

4
shlextest/src/main.rs

@ -0,0 +1,4 @@
fn main() {
let args = std::env::args().collect::<Vec<String>>().join(" ");
println!("{:?}", shlex::split(&args));
}
Loading…
Cancel
Save