cloudnativelabs / kube-shell

Kubernetes shell: An integrated shell for working with the Kubernetes
Apache License 2.0
2.38k stars 175 forks source link

Single quotes throw ValueError #55

Open saromba opened 6 years ago

saromba commented 6 years ago

Typing a single quote causes the following error: kube-shell> kubectl get pods --selector=Exception in thread Thread-43: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.target(*self.args, **self.__kwargs) File "/usr/local/lib/python2.7/dist-packages/prompt_toolkit/interface.py", line 865, in run completions = list(buffer.completer.get_completions(document, complete_event)) File "/usr/local/lib/python2.7/dist-packages/kubeshell/completer.py", line 41, in get_completions ON [F10] Exit
tokens = shlex.split(cmdline) File "/usr/lib/python2.7/shlex.py", line 279, in split return list(lex) File "/usr/lib/python2.7/shlex.py", line 269, in next token = self.get_token() File "/usr/lib/python2.7/shlex.py", line 96, in get_token raw = self.read_token() File "/usr/lib/python2.7/shlex.py", line 172, in read_token raise ValueError, "No closing quotation" ValueError: No closing quotation '