Commit 258fc011 authored by Devon Carew's avatar Devon Carew Committed by GitHub

pass additional named params to daemon run (#7392)

* pass additional named params to daemon run

* add a trailing comma
parent 12d5b26c
...@@ -322,8 +322,12 @@ class AppDomain extends Domain { ...@@ -322,8 +322,12 @@ class AppDomain extends Domain {
AppInstance startApp( AppInstance startApp(
Device device, String projectDirectory, String target, String route, Device device, String projectDirectory, String target, String route,
BuildMode buildMode, bool startPaused, bool enableHotReload) { BuildMode buildMode, bool startPaused, bool enableHotReload, {
String applicationBinary,
String projectRootPath,
String packagesFilePath,
String projectAssets,
}) {
DebuggingOptions options; DebuggingOptions options;
switch (buildMode) { switch (buildMode) {
...@@ -352,14 +356,19 @@ class AppDomain extends Domain { ...@@ -352,14 +356,19 @@ class AppDomain extends Domain {
device, device,
target: target, target: target,
debuggingOptions: options, debuggingOptions: options,
usesTerminalUI: false usesTerminalUI: false,
applicationBinary: applicationBinary,
projectRootPath: projectRootPath,
packagesFilePath: packagesFilePath,
projectAssets: projectAssets,
); );
} else { } else {
runner = new RunAndStayResident( runner = new RunAndStayResident(
device, device,
target: target, target: target,
debuggingOptions: options, debuggingOptions: options,
usesTerminalUI: false usesTerminalUI: false,
applicationBinary: applicationBinary,
); );
} }
......
...@@ -176,7 +176,11 @@ class RunCommand extends RunCommandBase { ...@@ -176,7 +176,11 @@ class RunCommand extends RunCommandBase {
try { try {
app = daemon.appDomain.startApp( app = daemon.appDomain.startApp(
device, fs.currentDirectory.path, targetFile, route, device, fs.currentDirectory.path, targetFile, route,
getBuildMode(), argResults['start-paused'], hotMode); getBuildMode(), argResults['start-paused'], hotMode,
applicationBinary: argResults['use-application-binary'],
projectRootPath: argResults['project-root'],
packagesFilePath: argResults['packages'],
projectAssets: argResults['project-assets']);
} catch (error) { } catch (error) {
throwToolExit(error.toString()); throwToolExit(error.toString());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment