示例#1
0
        public void Invoke(PackageManifestBuilder manifestBuilder)
        {
            var suggestion = manifestBuilder.Name.Value?.ToPackageId();
            var id         = _prompt.Request("Package ID", suggestion);

            manifestBuilder.Id.Add(id.ToPackageId(), Confidence.Authoritative, this);
        }
示例#2
0
        public void Invoke(PackageManifestBuilder manifest)
        {
            var tag = _prompt.Request("Tag", PackageManifest.LATEST_TAG)?.ToLowerInvariant();

            if (TagHelper.IsLatest(tag))
            {
                tag = null;
            }

            manifest.Tag = tag;
        }
示例#3
0
 public void Invoke(PackageManifestBuilder manifest)
 {
     manifest.Version.Add(_prompt.Request("Application Version", manifest.Version.Value), Confidence.Plausible, this);
 }
示例#4
0
        public void Invoke(PackageManifestBuilder manifest)
        {
            var name = _prompt.Request("Product Name", manifest.Name.Value);

            manifest.Name.Add(name, Confidence.Authoritative, this);
        }