Exemple #1
0
        public void Process(IEnumerable<string> args, IWizard wizard)
        {
            var newPattern = args.SingleOrDefault();
            if (newPattern != null)
            {
                wizard.SetPattern(new Core.Pattern(newPattern));
            }
            else
            {
                var existingPattern = wizard.GetPattern();
                this.Log.WriteLine(string.Format("The current pattern is: {0}", existingPattern));
            }

            var example = wizard.GetPendingRenames().FirstOrDefault();
            if (example != null)
            {
                var name = wizard.GetPattern().GetName(example.EpisodeMatches.MostProbable.Guess);
                this.Log.WriteLine(string.Format("Ex: {0}", name));
            }
        }