Method: VMC::Cli::ConsoleHelper#console_tab_completion_data
- Defined in:
- lib/cli/console_helper.rb
#console_tab_completion_data(cmd) ⇒ Object
92 93 94 95 96 97 98 99 |
# File 'lib/cli/console_helper.rb', line 92 def console_tab_completion_data(cmd) begin results = @telnet_client.cmd("String"=> cmd + "\t", "Match"=>/\S*\n$/, "Timeout"=>10) results.chomp.split(",") rescue TimeoutError [] #Just return empty results if timeout occurred on tab completion end end |