Пример #1
0
        public override async Task ExecuteCommandAsync()
        {
            if (!this.IsValid)
            {
                return;
            }
            await Task.Delay(0).ConfigureAwait(false);

            if (this.Line.CountTokens() > 2)
            {
                var app = Installables.GetInstallables().First(x => x.ApplicationName.ToUpperInvariant() == this.AppName.ToUpperInvariant());

                if (app == null)
                {
                    return;
                }

                this.CreateResource(app);
                return;
            }

            var apps = this.GetApps();

            foreach (var app in apps)
            {
                this.CreateResource(app);
            }
        }
Пример #2
0
        private List <Installable> GetApps()
        {
            var installables = Installables.GetInstallables();

            return(installables.Where(x => x.Hasi18N).ToList());
        }