git-cliff
clap-rs
Our great sponsors
git-cliff | clap-rs | |
---|---|---|
33 | 154 | |
7,609 | 13,288 | |
- | 2.5% | |
9.7 | 9.6 | |
4 days ago | 6 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
git-cliff
-
Getting Started with CLI tools in Rust using Clap
git-cliff is a terminal tool that can generate changelog from the Git history by using conventional commits, as well as by using regex-powered parsers and you can even change the changelog template itself by using a configuration file. This tool is a great example of text parsing on the terminal and also uses clap_mangen which generates man pages. Useful for anyone who is serious about looking into making a production-ready terminal tool!
- Adding GitHub integration to git-cliff (need opinions/comments)
-
Auto-Generated Customer-Friendly Changelogs
Solutions exist for this. Our company does this with git-cliff. Using conventional commits, any commit labeled with the subject "www" will appear in our public changelog.
-
changelog-gh-usernames: A tool to replace emails in changelogs with GitHub usernames
This was primarily aimed to work with git-cliff to generate changelogs for GitHub releases, since tagging contributors would include them as contributors for the release, while also ensuring structured changelogs thanks to git-cliff. As of now, it requires a few extra steps to get it working with git-cliff, but the integration should be much better once the PR for post-processors is merged.
- git-cliff is being re-licensed under the MIT & Apache 2.0
- Hey everyone, exciting news! Git-Cliff just dropped version 1.0.0! Who else is psyched to try it out? Let's hear your thoughts in the comments! 🚀🎉
- git-cliff 1.2.0 is released! (highly customizable changelog generator)
- Hey guys, exciting news! We just released git-cliff v1.0.0! This tool is gonna make your Git experience even better. Make sure to give it a try and let us know your thoughts in the comments. Happy coding! 🚀👨🏻💻👩🏻💻
-
A new open-sourcing project launches!!! A declarative, compose-based and cross-platform GUI
It's the first time I see someone combining gitmoji with conventional commits (I use the later now for all my project, to generate my changelogs automatically with with git-cliff.)
- GitHub - orhun/git-cliff: A highly customizable Changelog Generator that follows Conventional Commit specifications ⛰️
clap-rs
-
Build Your Own curl - Rust
We will be using the library for Clap - A simple-to-use, efficient, and full-featured library for parsing command line arguments and subcommands.
-
CLI Contexts
I recently came across this question (and associated answer) on the clap repository. The answer given is a good one. But I wanted to expand with my own findings and practices, which spurred the motivation for this post.
-
Getting Started with CLI tools in Rust using Clap
We can also use tuple-like struct syntax and named-field struct syntax for enum variants within our enum; this is because unlike in other OOP languages, Rust enums are actually sum types. You can read more about how powerful Rust enums are in another article we wrote here. You can have optional arguments by simply wrapping the types in Option, but if you want to add a flag to a command you can use bool, since clap recognises that flags are either there or not there. Let's have a look at what this might look like:
-
Flow Updater JSON Creator
I began by developing a wrapper for the CurseForge API, which turned out to be a lengthy and challenging process but constituted the bulk of the work. Next, I coded the CLI, which was relatively straightforward. Instead of using the clap crate, a Rust tool for generating CLIs, I opted for the following line of code:
-
netcrab: a networking tool
By this time I had already gotten tired of parsing arguments by myself and had looked for something to help with that. I found a really dang good argument parsing library called clap. What makes it so cool is it's largely declarative for common uses. You simply mark up a struct with attributes, and the parser automatically generates the usage and all the argument parsing code.
-
Grimoire - A recipe management application.
How CLI arguments are handled (using clap).
- Rust 1.72.0
-
I made an alternative --help renderer for clap based applications
Is this just referring to wrapping based on the terminal width? That is supported with the wrap_help feature though I have been considering making it a default feature.
-
Looking for advice around project direction using artix-web
CLI, use Clap. If you want to get fancy, use Tui.
-
Build a HTTP server with Rust and tokio - Part 1: serving static files
As our CLI is getting more complex, we'll use the clap crate to parse the command line arguments.
What are some alternatives?
conventional-changelog - Generate changelogs and release notes from a project's commit messages and metadata.
structopt - Parse command line arguments by defining a struct.
cocogitto - The Conventional Commits toolbox
argh - Rust derive-based argument parsing optimized for code size
git-cliff-action - GitHub action to generate a changelog based on the Git history
docopt.rs - Docopt for Rust (command line argument parser).
changie - Automated changelog tool for preparing releases with lots of customization options
argparse-benchmarks-rs - Collected benchmarks for arg parsing crates written in Rust [Moved to: https://github.com/rosetta-rs/argparse-rosetta-rs]
cargo-update - A cargo subcommand for checking and applying updates to installed executables
easy_flag - Simple command line flag parser for rust.
GitHub Changelog Generator - Automatically generate change log from your tags, issues, labels and pull requests on GitHub.
serde - Serialization framework for Rust