Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How can I get git-cliff's output in my program? #1046

Unanswered
Koishiiko asked this question in Q&A
Discussion options

I want to call git-cliff in my program, so I add the git-cliff crate and call git_cliff::run(), then printed the result to the command line.

Now I want to capture the outputs in my program, like let result: String = git_cliff::run();, but it seems that the crate does not provide such an interface.

I tried using git-cliff-core, but I found that the logic for converting commits into releases is implemented in git-cliff crate and is not export as a public method. Is there any ways to implement it?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /