Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indexer to store & retrieve custom properties to MinVerVersion #3

Open
augustoproiete opened this issue Nov 19, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@augustoproiete
Copy link
Member

Sometimes the MinVer generated version is the starting point to generate other (custom) representations of version(s), which may or may not be SemVer-compliant.

var version = MinVer();
string customVersion1 = null; // Initialized via Setup
string customVersion2 = null; // Initialized via Setup

Task("build")
    .Does(() =>
{
    // use customVersion1
    // use customVersion2
});

Setup(context =>
{
    customVersion1 = BuildCustomVersion(version, "A");
    customVersion2 = BuildCustomVersion(version, "B");
}

It would be nice if we could have something like this instead:

var version = MinVer();

Task("build")
    .Does(() =>
{
    // use version["custom1"]
    // use version["custom2"]
});

Setup(context =>
{
    version["custom1"] = BuildCustomVersion(version, "A");
    version["custom2"] = BuildCustomVersion(version, "B");
}
@augustoproiete augustoproiete added this to the 0.2.0 milestone Nov 19, 2020
@augustoproiete augustoproiete added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Nov 22, 2020
@augustoproiete augustoproiete modified the milestones: 0.2.0, Future Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant