Skip to content

Commit 443f47b

Browse files
committed
Print query id in status output
This is useful when layout = 'one-file-all-queries'.
1 parent 2fd74a7 commit 443f47b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/command.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,12 @@ pub fn status(assert_no_changes: bool) -> Result<i32, Error> {
211211
};
212212

213213
let q_stat = output::query_status(query, &query_reader, formatter.as_ref(), &q_output)?;
214-
println!("Query: {}: {}", &q_stat.label(), query.output.display());
214+
println!(
215+
"Query: {}: {} ({})",
216+
&q_stat.label(),
217+
query.id,
218+
query.output.display()
219+
);
215220
stats.insert(&query.output, q_stat);
216221

217222
// render and process tests

0 commit comments

Comments
 (0)