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
......@@ -321,9 +321,13 @@ class AppDomain extends Domain {
}
AppInstance startApp(
Device device, String projectDirectory, String target, String route,
BuildMode buildMode, bool startPaused, bool enableHotReload) {
Device device, String projectDirectory, String target, String route,
BuildMode buildMode, bool startPaused, bool enableHotReload, {
String applicationBinary,
String projectRootPath,
String packagesFilePath,
String projectAssets,
}) {
DebuggingOptions options;
switch (buildMode) {
......@@ -352,14 +356,19 @@ class AppDomain extends Domain {
device,
target: target,
debuggingOptions: options,
usesTerminalUI: false
usesTerminalUI: false,
applicationBinary: applicationBinary,
projectRootPath: projectRootPath,
packagesFilePath: packagesFilePath,
projectAssets: projectAssets,
);
} else {
runner = new RunAndStayResident(
device,
target: target,
debuggingOptions: options,
usesTerminalUI: false
usesTerminalUI: false,
applicationBinary: applicationBinary,
);
}
......
......@@ -176,7 +176,11 @@ class RunCommand extends RunCommandBase {
try {
app = daemon.appDomain.startApp(
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) {
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