@@ -53,13 +53,15 @@ class _ScriptParser implements ScriptsParser {
5353 );
5454 } else if (script is Map ) {
5555 final platformKey = '\$ ${Platform .operatingSystem }' ;
56- final command = script[platformKey] ?? script[ScriptsParser .defaultScriptKey];
56+ final command =
57+ script[platformKey] ?? script[ScriptsParser .defaultScriptKey];
5758 if (command is ! String ) {
5859 yield CommandExecuted (
5960 command: '-' ,
6061 context: context,
6162 description: description,
62- error: 'No platform script key for the command: "${context .path }". '
63+ error:
64+ 'No platform script key for the command: "${context .path }". '
6365 'Consider adding the key for the current '
6466 'platform: "$platformKey " or the default script '
6567 'key: "${ScriptsParser .defaultScriptKey }".' ,
@@ -97,11 +99,15 @@ class _ScriptParser implements ScriptsParser {
9799 }
98100
99101 final events = < ExecutionEvent > {};
100- for (final event in _getCommandsToExecute (context: context, arguments: arguments)) {
102+ for (final event
103+ in _getCommandsToExecute (context: context, arguments: arguments)) {
101104 final added = events.add (event);
102105 if (! added) {
103106 throw ScriptParserException (
104- 'Script cycle detected: ${[...events .map ((e ) => e .path ), event .path ].join (' → ' )}' ,
107+ 'Script cycle detected: ${[
108+ ...events .map ((e ) => e .path ),
109+ event .path
110+ ].join (' → ' )}' ,
105111 );
106112 }
107113 }
@@ -144,7 +150,8 @@ class _ScriptParser implements ScriptsParser {
144150 );
145151 } else if (script is Map ) {
146152 final platformKey = '\$ ${Platform .operatingSystem }' ;
147- final command = script[platformKey] ?? script[ScriptsParser .defaultScriptKey];
153+ final command =
154+ script[platformKey] ?? script[ScriptsParser .defaultScriptKey];
148155 if (command is ! String ) {
149156 throw RpsException (
150157 'No platform script key for the command: "${context .path }". '
0 commit comments