EasyBuild.Tools
1.1.0
See the version list below for details.
dotnet add package EasyBuild.Tools --version 1.1.0
NuGet\Install-Package EasyBuild.Tools -Version 1.1.0
<PackageReference Include="EasyBuild.Tools" Version="1.1.0" />
paket add EasyBuild.Tools --version 1.1.0
#r "nuget: EasyBuild.Tools, 1.1.0"
// Install EasyBuild.Tools as a Cake Addin #addin nuget:?package=EasyBuild.Tools&version=1.1.0 // Install EasyBuild.Tools as a Cake Tool #tool nuget:?package=EasyBuild.Tools&version=1.1.0
EasyBuild.Tools
Tool for generating changelog based on Git history based on Conventional Commits. It is using EasyBuild.CommitParser to parse commit messages check their documentation for more information about configuration.
Installation
dotnet add package EasyBuild.Tools
APIs
Git
<details> <summary> <code>Git.addAll</code>
- add all files to staging area </summary>
Parameters
None
Returns
unit
Example
open EasyBuild.Tools.Git
Git.addAll()
</details>
<details> <summary> <code>Git.commitRelease</code>
- commit staged files with release message using conventional commit </summary>
Parameters
name | type | required | description |
---|---|---|---|
newVersion |
string |
✅ | Version to release |
Returns
unit
Example
open EasyBuild.Tools.Git
// Create a commit with message "chore: release 1.0.0"
Git.commitRelease "1.0.0"
</details>
<details> <summary> <code>Git.push</code>
- push changes to remote repository </summary>
Parameters
name | type | required | description |
---|---|---|---|
force |
bool |
❌ | Force push to remote branch |
Returns
unit
Example
open EasyBuild.Tools.Git
Git.push()
</details>
DotNet
<details> <summary> <code>DotNet.changelogGen</code>
- generate changelog using <a href="https://github.com/easybuild-org/EasyBuild.ChangelogGen">EasyBuild.ChangelogGen</a> </code> </summary>
Parameters
name | type | required | default | description |
---|---|---|---|---|
changelogFile |
string |
✅ | ||
allowDirty |
bool |
❌ | Allow to run in a dirty repository | |
allowBranch |
string list |
❌ | main |
List of branches that are allowed to be used to generate the changelog. |
tagFilter |
string list |
❌ | List of tags to include in the changelog | |
preRelease |
string |
❌ | Indicate that the generated version is a pre-release version. | |
forceVersion |
string |
❌ | Force the version to be used in the changelog | |
skipInvalidCommit |
bool |
❌ | Skip invalid commits instead of failing | |
dryRun |
bool |
❌ | Run the command without writing to the changelog file, output the result in STDOUT instead | |
githubRepo |
string |
❌ | GitHub repository name in format 'owner/repo' | |
workingDirectory |
string |
❌ | Working directory path | |
forwardArguments |
string list |
❌ | List of arguments to forward to the CLI tools as defined in EasyBuild.ChangelogGen |
Returns
string
- new version generated based on the commits history
Example
open EasyBuild.Tools.DotNet
let newVersion = DotNet.changelogGen "CHANGELOG.md"
</details>
<details> <summary> <code>DotNet.pack</code>
- commit staged files with release message of format <code>chore: release {version}</code> </summary>
Parameters
name | type | required | default | description |
---|---|---|---|---|
workingDirectory |
string |
❌ | Working directory path | |
configuration |
Configuration |
❌ | Release |
Build configuration |
Returns
FileInfo
- file descriptor to the generated .nupkg
file
Example
open EasyBuild.Tools.DotNet
let nupkgFile = DotNet.pack()
</details>
<details> <summary> <code>DotNet.nugetPush</code>
- commit staged files with release message using conventional commit </summary>
Parameters
name | type | required | default | description |
---|---|---|---|---|
nupkgPath |
string |
✅ | Working directory path | |
nugetKey |
Configuration |
❌ | NUGET_KEY env variable |
NuGet API key |
skipDuplicate |
bool |
❌ | true |
If a package and version already exists, skip it |
source |
string |
❌ | Package source (URL, UNC/folder path or package source name) to use. | |
forceEcho |
bool |
❌ | false |
Echo the |
Returns
unit
Example
open EasyBuild.Tools.DotNet
// In general, you will get the nupkg file from DotNet.pack
let nupkgFile = DotNet.pack()
DotNet.nugetPush nupkgFile
// Or you can customize it
let nugetKey = Environment.GetEnvironmentVariable "NUGET_KEY_CUSTOM"
DotNet.nugetPush (nupkgFile, nugetKey = nugetKey)
</details>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- BlackFox.CommandLine (>= 1.0.0)
- FSharp.Core (>= 5.0.2)
- SimpleExec (>= 12.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
### 🚀 Features
* Add `config` parameter to `DotNet.changelogGen` ([d2f0dc3](https://github.com/easybuild-org/EasyBuild.Tools/commit/d2f0dc3b91b8fc7a52afbf179e0780e15561be1d))
### 🐞 Bug Fixes
* `forwardArguments` parameter of `DotNet.changelogGen` ([d45d733](https://github.com/easybuild-org/EasyBuild.Tools/commit/d45d733b306248cf7374abd0016ea8028b1bc93d))
<strong><small>[View changes on Github](https://github.com/easybuild-org/EasyBuild.Tools/compare/3c2ffd23492859b26a851a2e670fadf61e6c955a..d45d733b306248cf7374abd0016ea8028b1bc93d)</small></strong>