Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issues with pipe server refactor and autocomplete.

  • Loading branch information...
commit 9c24ef943b29a72e1801b667c8732950067f2543 1 parent e9a8240
@commondream commondream authored
Showing with 4 additions and 5 deletions.
  1. +0 −1  lib/tconsole/config.rb
  2. +4 −4 lib/tconsole/console.rb
View
1  lib/tconsole/config.rb
@@ -172,7 +172,6 @@ def self.configure(argv = [])
"integration" => ["#{config.test_dir}/integration/**/*_test.rb"]
}
-
config.before_load do
ENV["RAILS_ENV"] ||= "test"
end
View
8 lib/tconsole/console.rb
@@ -8,11 +8,9 @@ def initialize(config, reporter)
self.config = config
self.reporter = reporter
read_history
-
- define_autocomplete
end
- def define_autocomplete
+ def define_autocomplete(pipe_server)
Readline.completion_append_character = ""
# Proc for helping us figure out autocompletes
@@ -22,7 +20,7 @@ def define_autocomplete
known_elements = []
unless pipe_server.nil?
- known_elements = send_message(:autocomplete, str)
+ known_elements = send_message(pipe_server, :autocomplete, str)
end
known_commands.concat(known_elements)
@@ -47,6 +45,8 @@ def read_and_execute(pipe_server)
return true
end
+ define_autocomplete(pipe_server)
+
# The command entry loop
while command = Readline.readline(prompt, false)
command.strip!
Please sign in to comment.
Something went wrong with that request. Please try again.