ap0llo/changelog

Embedable into other C# program

Opened this issue · 3 comments

great work! congrats

My use case is to generate the changelog using Nuke.build building process. To use the generator via c# code directly. Currently, I have to call it as a separate program.

It would be nice to have an entry point to pass all the arguments as an options class or option by option.

regards!

ap0llo commented

Thank you for your feedback, I'm glad you like it.

I'm not really familiar with Nuke. How does the integration of tools usually work? Would the integration be a C# wrapper around the command line interface?

Hi Andreas.

Nuke allows running the build/test as a C# program (so locally or inside a Github Ci/CD, it would execute the same). But the point is to embed Changelog into another program.

My use case is to it add a c# program that, every week, checks if there is any new git commit and if so, bump the version number, creates a changelog, and creates a release. Now, I have to run changelog as a command line (which is somewhat OS-dependent). I would use Changelog directly thru C#, like

using Grynwald.ChangeLog;
...
if (isThereNewCommit) {
var options = new ChangelogParameters() {/* options*/};
CommandLineParser.Parse(options);
...
}
ap0llo commented

Sorry, this got lost in my inbox.

I'd be open to that, and would consider accepting a PR adding this.
However I will not be working on such a feature personally for now, since I'm not using Nuke myself.