public static int Download(RemoteSourceDownloadOptions downloadOpts, TextWriter output, TextWriter error)
        {
            if (downloadOpts.Config)
            {
                RemoteSourceWorker.DownloadConfig(downloadOpts, output, error);
            }
            else
            {
                RemoteSourceWorker.DownloadContent(downloadOpts, output, error);
            }

            return(0);
        }
        public static int Publish(RemoteSourcePublishOptions publishOpts, TextWriter output, TextWriter error)
        {
            if (publishOpts.Config)
            {
                RemoteSourceWorker.PublishConfig(publishOpts, output, error);
            }
            else
            {
                RemoteSourceWorker.PublishContent(publishOpts, output, error);
            }

            return(0);
        }
        public static int List(RemoteSourceListOptions listOpts, TextWriter output, TextWriter error)
        {
            if (listOpts.Summary && !listOpts.Detailed)
            {
                RemoteSourceWorker.ListSummaryInfo(listOpts, output, error);
            }

            if (listOpts.Detailed)
            {
                RemoteSourceWorker.ListDetailedVersions(listOpts, output, error);
            }

            return(0);
        }