Ejemplo n.º 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(", ");
 }
Ejemplo n.º 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(", "));
        }
Ejemplo n.º 3
0
        object GenerateTitle(PackageFoundResult currentPackage)
        {
            var title = currentPackage.Packages.First().Title;

            return(title != null?string.Format(" ({0})") : string.Empty);
        }
Ejemplo n.º 4
0
 object GenerateTitle(PackageFoundResult currentPackage)
 {
     var title = currentPackage.Packages.First().Title;
     return title != null ? string.Format(" ({0})") : string.Empty;
 }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
0
 public PackageFoundCommandOutput(PackageFoundResult result)
     : base(string.Empty)
 {
     _result = result;
 }
Ejemplo n.º 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;
 }