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

Unified Diff: tools/cr/cr/commands/select.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/run.py ('k') | tools/cr/cr/commands/shell.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/commands/select.py
diff --git a/tools/cr/cr/commands/select.py b/tools/cr/cr/commands/select.py
index 58cebdd384dad181bba2a82080be1e50e2ebf325..eadd1096fce235aae6ca79f39d46bcfcf32f588f 100644
--- a/tools/cr/cr/commands/select.py
+++ b/tools/cr/cr/commands/select.py
@@ -40,22 +40,20 @@ class SelectCommand(cr.Command):
help='Don\'t prepare the output directory.'
)
- def Run(self, context):
- self.Select(context)
+ def Run(self):
+ self.Select()
@classmethod
- def Select(cls, context):
+ def Select(cls):
"""Performs the select.
This is also called by the init command to auto select the new output
directory.
- Args:
- context: The cr Context to select in.
"""
cr.base.client.WriteConfig(
- context, context.Get('CR_CLIENT_PATH'), dict(
- CR_OUT_FULL=context.Get('CR_OUT_FULL')))
- cr.base.client.PrintInfo(context)
+ cr.context.Get('CR_CLIENT_PATH'), dict(
+ CR_OUT_FULL=cr.context.Get('CR_OUT_FULL')))
+ cr.base.client.PrintInfo()
# Now we run the post select actions
- if not getattr(context.args, '_no_prepare', None):
- cr.PrepareCommand.Prepare(context)
+ if not getattr(cr.context.args, '_no_prepare', None):
+ cr.PrepareCommand.Prepare()
« no previous file with comments | « tools/cr/cr/commands/run.py ('k') | tools/cr/cr/commands/shell.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698