예제 #1
0
        public static void FlutterDevices(this ICakeContext context, FlutterDevicesSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var runner = new GenericRunner <FlutterDevicesSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("devices", settings ?? new FlutterDevicesSettings());
        }
예제 #2
0
        public static IEnumerable <string> FlutterDevicesWithResult(this ICakeContext context, FlutterDevicesSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var runner = new GenericRunner <FlutterDevicesSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("devices", settings ?? new FlutterDevicesSettings()));
        }