We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1c6c50 commit f3f54e2Copy full SHA for f3f54e2
1 file changed
src/main.rs
@@ -25,8 +25,23 @@ fn scan() -> io::Result<()> {
25
term
26
.write_line(&format!("[+] Scanning: {}", style(path.display()).bold()))?;
27
term.write_line("")?;
28
- let _ = fetch_artifacts(&path);
29
- Ok(())
+ let artifacts = fetch_artifacts(&path);
+
30
+ if artifacts.is_empty() {
31
+ term.write_line("No significant build artifacts found.")
32
+ } else {
33
+ for (i, artifact) in artifacts.iter().enumerate() {
34
+ let rel_path =
35
+ artifact.path.strip_prefix(&path).unwrap_or(&artifact.path);
36
+ term.write_line(&format!(
37
+ "[{}] {:<30} {}",
38
+ i + 1,
39
+ style(format!("./{}", rel_path.display())).bold(),
40
+ style(format!("unknown size")).yellow()
41
+ ))?;
42
+ }
43
+ Ok(())
44
45
}
46
47
fn exit_unrecoverable(_err: io::Error) {
0 commit comments