示例#1
0
 string GenerateVersions(PackageFoundResult package)
 {
     Func<IPackageInfo, Version> versionSelector = x =>
         Detailed ? x.Version : x.Version.IgnoreRevision();
     return package.Packages.Select(versionSelector)
                            .Distinct()
                            .OrderByDescending(_=>_)
                            .JoinString(", ");
 }
示例#2
0
        string GenerateVersions(PackageFoundResult package)
        {
            Func <IPackageInfo, SemanticVersion> versionSelector = x =>
                                                                   Detailed ? x.SemanticVersion : x.SemanticVersion.Numeric();

            return(package.Packages.Select(versionSelector)
                   .Distinct()
                   .OrderByDescending(_ => _)
                   .JoinString(", "));
        }
示例#3
0
        object GenerateTitle(PackageFoundResult currentPackage)
        {
            var title = currentPackage.Packages.First().Title;

            return(title != null?string.Format(" ({0})") : string.Empty);
        }
 object GenerateTitle(PackageFoundResult currentPackage)
 {
     var title = currentPackage.Packages.First().Title;
     return title != null ? string.Format(" ({0})") : string.Empty;
 }
 public PackageFoundCommandOutput(PackageFoundResult result)
     : base(" - {0} (available: {1})", result.Name, result.Packages.Select(x => x.Version + (x.Nuked ? " [nuked]" : string.Empty)).Join(", "))
 {
     _result = result;
 }
 public PackageFoundCommandOutput(PackageFoundResult result)
     : base(string.Empty)
 {
     _result = result;
 }
示例#7
0
 public PackageFoundCommandOutput(PackageFoundResult result)
     : base(" - {0} (available: {1})", result.Name, result.Packages.Select(x => x.Version + (x.Nuked ? " [nuked]" : string.Empty)).Join(", "))
 {
     _result = result;
 }