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

Embedable into other C# program #466

Open
brmassa opened this issue May 30, 2023 · 3 comments
Open

Embedable into other C# program #466

brmassa opened this issue May 30, 2023 · 3 comments

Comments

@brmassa
Copy link

brmassa commented May 30, 2023

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
Copy link
Owner

ap0llo commented Jun 5, 2023

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?

@brmassa
Copy link
Author

brmassa commented Jun 6, 2023

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
Copy link
Owner

ap0llo commented Jul 10, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants