Ejemplo n.º 1
0
        public static void Execute(IBundleCollector bundleCollector)
        {
            CommandBundleFilter.HandleVersionOption();

            var filtered = CommandBundleFilter.GetFilteredWithRequirementStrings(bundleCollector);

            if (CommandLineConfigs.CommandLineParseResult.CommandResult.OptionResult(CommandLineConfigs.YesOption.Name) != null)
            {
                if (!IsAdmin())
                {
                    throw new NotAdminException();
                }

                DoIt(filtered.Keys);
            }
            else
            {
                if (!IsAdmin())
                {
                    throw new NotAdminException();
                }

                if (AskItAndReturnUserAnswer(filtered))
                {
                    if (AskWithWarningsForRequiredBundles(filtered))
                    {
                        DoIt(filtered.Keys);
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public static void Execute(IBundleCollector bundleCollector)
        {
            CommandBundleFilter.HandleVersionOption();

            var filtered = CommandBundleFilter.GetFilteredWithRequirementStrings(bundleCollector);

            TryIt(filtered);
        }