createIconsFromArguments function

Future<void> createIconsFromArguments(
  1. List<String> arguments
)

Backward-compat shim. Phase 4 routes everything through the CommandRunner in lib/cli/command_runner.dart. This entry point is preserved for callers that imported it before 0.15.0 (notably bin/flutter_launcher_icons.dart historically and the integration test in test/main_consolidated_flow_test.dart).

Behavior parity: when the runner returns a non-zero exit code, we terminate the current isolate via exit(code) exactly as the old implementation did. On success we return normally so test harnesses can continue to make assertions afterwards.

Implementation

Future<void> createIconsFromArguments(List<String> arguments) async {
  final code = await runCli(arguments);
  if (code != 0) {
    exit(code);
  }
}