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

Unified Diff: sky/sdk/lib/sky_tool

Issue 1215103006: Improve default behavior for sky_tool start (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/sky_tool
diff --git a/sky/sdk/lib/sky_tool b/sky/sdk/lib/sky_tool
index 3ad920a802a06086b3836941436b0a12c462268f..a9a3bacb1fb232e25a07e4c3ef39bfc1a3d0bba7 100755
--- a/sky/sdk/lib/sky_tool
+++ b/sky/sdk/lib/sky_tool
@@ -120,7 +120,7 @@ class StartSky(object):
help='launch %s on the device' % APK_NAME)
start_parser.add_argument('--install', action='store_true')
start_parser.add_argument('project_or_path', nargs='?', type=str,
- default='main.dart')
+ default='.')
start_parser.set_defaults(func=self.run)
def _is_package_installed(self, package_name):
@@ -134,8 +134,8 @@ class StartSky(object):
if os.path.isdir(project_or_path):
sky_server_root = project_or_path
- main_dart = os.path.join(project_or_path, 'main.dart')
- missing_msg = "Missing main.dart in project: %s" % sky_server_root
+ main_dart = os.path.join(project_or_path, 'lib', 'main.dart')
+ missing_msg = "Missing lib/main.dart in project: %s" % project_dir
else:
# FIXME: This assumes the path is at the root of the project!
# Instead we should walk up looking for a pubspec.yaml
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698