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.
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 using its aliases, e.g.:
BumpyIncrement(2);
Please read Bumpy's documentation to learn more about what each command does.
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