Created
July 22, 2021 04:38
-
-
Save cuongld2/046b70f30fe50351dbc08f72bc3b8dd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let input = Command::new("yes") | |
.stdout(Stdio::piped()) | |
.spawn(); | |
let _ = Command::new("gen3-client") | |
.arg("download-single") | |
.args(&["--profile=tysud456", "--guid=c254e7d9-bd10-4f8b-803f-5388de3eba9c","--filename-format=original","--rename"]) | |
.stdin(input.ok().unwrap().stdout.unwrap()) | |
.output().ok() | |
.expect("Failed to execute command"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment