string GenerateVersions(PackageFoundResult package) { Func<IPackageInfo, Version> versionSelector = x => Detailed ? x.Version : x.Version.IgnoreRevision(); return package.Packages.Select(versionSelector) .Distinct() .OrderByDescending(_=>_) .JoinString(", "); }
string GenerateVersions(PackageFoundResult package) { Func <IPackageInfo, SemanticVersion> versionSelector = x => Detailed ? x.SemanticVersion : x.SemanticVersion.Numeric(); return(package.Packages.Select(versionSelector) .Distinct() .OrderByDescending(_ => _) .JoinString(", ")); }
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; }