• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 use std::path::Path;
6 use std::process::Command;
7 
download_command(url: &str, destination: &Path) -> Command8 pub(crate) fn download_command(url: &str, destination: &Path) -> Command {
9     let mut cmd = Command::new("curl");
10     cmd.arg("--fail")
11         .arg("--location")
12         .arg("--silent")
13         .args(["--output", destination.to_str().unwrap()])
14         .arg(url);
15     cmd
16 }
17