)]}'
{"glanceclient/shell.py":[{"author":{"_account_id":616,"name":"Mark Washenberger","email":"mark.washenberger@markwash.net","username":"markwash"},"change_message_id":"f68f94d76c7ea4e4ae662d6d708e7c007804318b","unresolved":false,"context_lines":[{"line_number":524,"context_line":"        else:"},{"line_number":525,"context_line":"            self.parser.print_help()"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":"    def do_bash_completion(self, args):"},{"line_number":528,"context_line":"        \"\"\"Print arguments for bash_completion."},{"line_number":529,"context_line":""},{"line_number":530,"context_line":"        Prints all of the commands and options to stdout so that the"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2F%2BlM%3D","line":527,"updated":"2014-01-05 17:38:20.000000000","message":"Should we be trying to parse some of the args to see what subcommand has already been entered into the command line? I\u0027m afraid repeatedly doing completion for subcommand names on the same terminal line would be confusing.","commit_id":"5e59b61e3095e58af4a7eaadebe0a9b569b676b4"},{"author":{"_account_id":9552,"name":"Peter Belanyi","email":"peter.belanyi@gmail.com","username":"pbelanyi"},"change_message_id":"068bc918c8d19d62bd5c24fb5b651c3ceea1a601","unresolved":false,"context_lines":[{"line_number":524,"context_line":"        else:"},{"line_number":525,"context_line":"            self.parser.print_help()"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":"    def do_bash_completion(self, args):"},{"line_number":528,"context_line":"        \"\"\"Print arguments for bash_completion."},{"line_number":529,"context_line":""},{"line_number":530,"context_line":"        Prints all of the commands and options to stdout so that the"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAUH%2F%2FyWk%3D","line":527,"in_reply_to":"AAAAUH%2F%2F%2BlM%3D","updated":"2014-01-08 13:38:27.000000000","message":"It would be possible, but I think it would become overcomplicated. glance.bash_completion already distinguishes between flags and commands, and it offers completions which match the already typed text.\n\nMy main reason against doing more parsing in python is that it would disable caching of available completions. Currently \"glance bash-completion\" is called only once and the result is stored in environment variables. If \"glance bash-completion\" were called each time a user presses tab, it would be much slower.\n\nUsually the function of bash completion is just to give some help about available options, that\u0027s what the current solution does, and it aligns with the other python clients. Let me know if you disagree, and I will look into possible improvements.","commit_id":"5e59b61e3095e58af4a7eaadebe0a9b569b676b4"}]}
