Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: trunk/src/tools/cr/cr/autocomplete.py

Issue 67763006: Revert 235983 "Adding the main function and remaining pieces." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/tools/cr/cr/auto/user/__init__.py ('k') | trunk/src/tools/cr/main.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/tools/cr/cr/autocomplete.py
===================================================================
--- trunk/src/tools/cr/cr/autocomplete.py (revision 235987)
+++ trunk/src/tools/cr/cr/autocomplete.py (working copy)
@@ -1,27 +0,0 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Bash auto completion support.
-
-Contains the special mode that returns lists of possible completions for the
-current command line.
-"""
-
-import cr
-
-
-def Complete(context):
- """Attempts to build a completion list for the current command line.
-
- COMP_WORD contains the word that is being completed, and COMP_CWORD has
- the index of that word on the command line.
-
- Args:
- context: The cr context object, of type cr.context.Context.
- """
-
- _ = context
- # TODO(iancottrell): support auto complete of more than just the command
- # try to parse the command line using parser
- print ' '.join(command.name for command in cr.Command.Plugins())
« no previous file with comments | « trunk/src/tools/cr/cr/auto/user/__init__.py ('k') | trunk/src/tools/cr/main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698