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

Unified Diff: tools/cr/cr/commands/info.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/commands/debug.py ('k') | tools/cr/cr/commands/init.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/commands/info.py
diff --git a/tools/cr/cr/commands/info.py b/tools/cr/cr/commands/info.py
index 88af0f5aaa237daed098aaacafb63cf5b330c865..fcd7307e9b4e5fb00f65b3b6dd3814cbd51dc2b8 100644
--- a/tools/cr/cr/commands/info.py
+++ b/tools/cr/cr/commands/info.py
@@ -24,20 +24,20 @@ class InfoCommand(cr.Command):
self.ConsumeArgs(parser, 'the environment')
return parser
- def EarlyArgProcessing(self, context):
- if getattr(context.args, '_short', False):
+ def EarlyArgProcessing(self):
+ if getattr(cr.context.args, '_short', False):
self.requires_build_dir = False
- def Run(self, context):
- if context.remains:
- for var in context.remains:
- if getattr(context.args, '_short', False):
- val = context.Find(var)
+ def Run(self):
+ if cr.context.remains:
+ for var in cr.context.remains:
+ if getattr(cr.context.args, '_short', False):
+ val = cr.context.Find(var)
if val is None:
val = ''
print val
else:
- print var, '=', context.Find(var)
+ print var, '=', cr.context.Find(var)
else:
- cr.base.client.PrintInfo(context)
+ cr.base.client.PrintInfo()
« no previous file with comments | « tools/cr/cr/commands/debug.py ('k') | tools/cr/cr/commands/init.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698