Prompt on missing dependency in cqlsh on Windows
Patch by Josh McKenzie, reviewed by Jonathan Ellis for CASSANDRA-7749


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/70d9f895
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/70d9f895
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/70d9f895

Branch: refs/heads/cassandra-2.1
Commit: 70d9f895da5ddcdeb2799baffa160fb4eaa72717
Parents: cb8ce83
Author: Joshua McKenzie <[email protected]>
Authored: Mon Aug 11 15:30:19 2014 -0500
Committer: Joshua McKenzie <[email protected]>
Committed: Mon Aug 11 15:30:19 2014 -0500

----------------------------------------------------------------------
 bin/cqlsh | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/70d9f895/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index a4ad6d0..5b63696 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -728,6 +728,8 @@ class Shell(cmd.Cmd):
             try:
                 import readline
             except ImportError:
+                if platform.system() == 'Windows':
+                    print "WARNING: pyreadline dependency missing.  Install to 
enable tab completion."
                 pass
             else:
                 old_completer = readline.get_completer()

Reply via email to