File tree Expand file tree Collapse file tree
crates/cli/src/devbox/commands Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments