public static void FlutterInstall(this ICakeContext context, FlutterInstallSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var runner = new GenericRunner <FlutterInstallSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Run("install", settings ?? new FlutterInstallSettings()); }
public static IEnumerable <string> FlutterInstallWithResult(this ICakeContext context, FlutterInstallSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var runner = new GenericRunner <FlutterInstallSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); return(runner.RunWithResult("install", settings ?? new FlutterInstallSettings())); }