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

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

Issue 142933004: [cr tool] Make context implicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 9 months 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 | « tools/cr/cr/actions/runner.py ('k') | tools/cr/cr/base/android.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/autocomplete.py
diff --git a/tools/cr/cr/autocomplete.py b/tools/cr/cr/autocomplete.py
index ab9ce2f5784baa93758b1fb5885c1aae9196d0a9..f03b821c065602e4fb43f177f64245b5b2846535 100644
--- a/tools/cr/cr/autocomplete.py
+++ b/tools/cr/cr/autocomplete.py
@@ -11,17 +11,13 @@ current command line.
import cr
-def Complete(context):
+def Complete():
"""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 | « tools/cr/cr/actions/runner.py ('k') | tools/cr/cr/base/android.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698