mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-25 04:52:32 +00:00
print a prettier command string
This commit is contained in:
parent
a522d49558
commit
1d260530fb
3 changed files with 15 additions and 13 deletions
|
@ -5,6 +5,7 @@ extern crate roc_module;
|
|||
extern crate tempfile;
|
||||
|
||||
use roc_utils::cargo;
|
||||
use roc_utils::pretty_command_string;
|
||||
use roc_utils::root_dir;
|
||||
use serde::Deserialize;
|
||||
use serde_xml_rs::from_str;
|
||||
|
@ -447,15 +448,3 @@ pub fn known_bad_file(file_name: &str) -> PathBuf {
|
|||
|
||||
path
|
||||
}
|
||||
|
||||
fn pretty_command_string(command: &Command) -> OsString {
|
||||
let mut command_string = std::ffi::OsString::new();
|
||||
command_string.push(command.get_program());
|
||||
|
||||
for arg in command.get_args() {
|
||||
command_string.push(" ");
|
||||
command_string.push(arg);
|
||||
}
|
||||
|
||||
command_string
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue