Skip to content

Commit df298b6

Browse files
committed
update
1 parent b9b95b3 commit df298b6

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

crates/cli/src/devbox/commands/connect.rs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,29 @@ impl DevboxTunnelManager {
632632
if intercept.device_name != session_info.device_name {
633633
continue;
634634
}
635+
let port_details = if intercept.port_mappings.is_empty() {
636+
"no port mappings".to_string()
637+
} else {
638+
intercept
639+
.port_mappings
640+
.iter()
641+
.map(|mapping| {
642+
format!(
643+
"{} {} -> localhost:{}",
644+
mapping.protocol.to_uppercase(),
645+
mapping.workload_port,
646+
mapping.local_port
647+
)
648+
})
649+
.collect::<Vec<_>>()
650+
.join(", ")
651+
};
635652
println!(
636-
" {} Intercept active for {}/{} ({} port(s))",
653+
" {} Intercept active for {}/{} ({})",
637654
"↻".green(),
638655
intercept.namespace.bright_white(),
639656
intercept.workload_name.cyan(),
640-
intercept.port_mappings.len()
657+
port_details
641658
);
642659
}
643660
}

0 commit comments

Comments
 (0)