示例#1
0
        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());
        }
示例#2
0
        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()));
        }