Пример #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()));
        }