Пример #1
0
        private static int Execute(CommandArgs commandArgs, IOutput output)
        {
            Logger.Log.Info("Enter Download List command.");

            output.WriteLine("Listing...");

            string name = commandArgs.GetParameter <string>(PodcastName);

            Logger.Log.Info($"Input podcast name is {name}.");

            int res = Opml.ListPodcastAllRelease(name, ref output);

            if (res == 0)
            {
                Logger.Log.Warn("Finish listing.");
                output.WriteLine("Done.");
            }
            else
            {
                Logger.Log.Warn("The input name is NOT in the library.");
            }
            return(0);
        }