@@ -561,13 +561,14 @@ def cmd_sleep(*args)
561
561
# Display help for transport management.
562
562
#
563
563
def cmd_transport_help
564
- print_line ( 'Usage: transport <list|change|add|next|prev> [options]' )
564
+ print_line ( 'Usage: transport <list|change|add|next|prev|remove > [options]' )
565
565
print_line
566
566
print_line ( ' list: list the currently active transports.' )
567
567
print_line ( ' add: add a new transport to the transport list.' )
568
568
print_line ( ' change: same as add, but changes directly to the added entry.' )
569
569
print_line ( ' next: jump to the next transport in the list (no options).' )
570
570
print_line ( ' prev: jump to the previous transport in the list (no options).' )
571
+ print_line ( ' remove: remove an existing, non-active transport.' )
571
572
print_line ( @@transport_opts . usage )
572
573
end
573
574
@@ -581,7 +582,7 @@ def cmd_transport(*args)
581
582
end
582
583
583
584
command = args . shift
584
- unless [ 'list' , 'add' , 'change' , 'prev' , 'next' ] . include? ( command )
585
+ unless [ 'list' , 'add' , 'change' , 'prev' , 'next' , 'remove' ] . include? ( command )
585
586
cmd_transport_help
586
587
return
587
588
end
@@ -733,6 +734,13 @@ def cmd_transport(*args)
733
734
else
734
735
print_error ( "Failed to add transport, please check the parameters" )
735
736
end
737
+ when 'remove'
738
+ print_status ( "Removing transport ..." )
739
+ if client . core . transport_remove ( opts )
740
+ print_good ( "Successfully removed #{ opts [ :transport ] } transport." )
741
+ else
742
+ print_error ( "Failed to remove transport, please check the parameters" )
743
+ end
736
744
end
737
745
end
738
746
0 commit comments