Skip to content

Cake Addin that extends Cake with the ability to manage version information in a project using bumpy.exe

License

Notifications You must be signed in to change notification settings

cake-contrib/Cake.Bumpy

Repository files navigation

Cake.Bumpy

Cake.Bumpy is an Addin for Cake which can help you to manage version information across several files in your project using the command line tool Bumpy.

Usage

In order to use the commands for this addin, you will need to include the following in your build.cake file to download and reference from NuGet.org:

#tool Bumpy

In addition, you will need to include the following:

#addin Cake.Bumpy

Afterwards you can start to use the Addin, e.g.:

BumpyIncrement(2);

You can learn more about using Bumpy and the Addin from their respective documentation here and here.

Example

The Example folder in this repository outlines a simple build script which can be used to increment versions in some files using a .bumypconfig file:

#tool Bumpy
#addin Cake.Bumpy

var target = Argument("target", "Default");

Task("Default")
    .Does(() =>
{
    Information("Bumpy increment:");
    BumpyIncrement(3);
});

RunTarget(target);

To see the example in action run:

cd .\Example
.\build.ps1

Sample output:

========================================
Default
========================================
Executing task: Default
Bumpy increment:
\my_version_file1.txt (0): 1.0.0 -> 1.0.1
\my_version_file2.txt (0): 1.0.0 -> 1.0.1
Finished executing task: Default

License

MIT

About

Cake Addin that extends Cake with the ability to manage version information in a project using bumpy.exe

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •