Comments (6)
One potential alternative would be to port from structopt to Clap — which can work very nearly the same but is also a bit more flexible. There are already ways to convert the --help
output it generates to man pages, but there is also progress on it's internal manpage generation: clap-rs/clap#552
from git-cliff.
There is clap_mangen now. 🎉
from git-cliff.
Updates on my comment above:
- Clap v3 is out. It now directly consumes StructOpt structs, so porting should be easy.
- Man page generation isn't there yet, but there is WIP.
from git-cliff.
I added a man page generation script in 03d55c8. Man page can be generated and viewed like this:
OUT_DIR=$(pwd) cargo run --bin git-cliff-mangen
man ./git-cliff.1
from git-cliff.
I think this should probably go in build.rs
, possibly behind an on-by-default feature flag so people that don't want to compile the dependency crates don't have to. The matching man page can then be considered a standard artifact of the build process.
... of course if you follow my logic too far you have to wrap Rust projects in a proper build system like autoconf so everything gets installed to the right places depending on the system without putting the burden on distro packages to reinvent the wheel to spin up everything by hand in each upstream project.
from git-cliff.
I think this should probably go in
build.rs
, possibly behind an on-by-default feature flag so people that don't want to compile the dependency crates don't have to. The matching man page can then be considered a standard artifact of the build process.
I think I'm going to leave it as is for now. Completions are also generated with the same approach.
from git-cliff.
Related Issues (20)
- Docs unclear about Github token permissions HOT 3
- Add Nix Dev environment for easier reproducible dev envs HOT 2
- $ anchor in commit_preprocessors not works HOT 1
- Optional unconventional commit parsing into message/body/footer HOT 1
- allow limiting commits to scoped ones HOT 1
- --unreleased does not behave as expected with tags on side branches HOT 3
- merge identical commit messages HOT 2
- Allow the whole commit object to be used as a field inside of a commit parser HOT 2
- Bitbucket integration not working with self-hosted instance HOT 2
- Slow for large repositories with binary files in Git LFS and long history
- Config environment variables are not respected when cliff.toml is not found HOT 5
- Github integration is not run when printing context (`--context`) HOT 8
- Detailed template errors out with template render error HOT 2
- Change to MiniJinja HOT 8
- Regenerating changelog after taging changes the date
- [gitlab] context data are missing HOT 2
- Support a body template specifically for when there are no contributing commits HOT 1
- git-cliff-core: allow adding arbitrary values to commits HOT 6
- Allow disabling topological order for commits
- `--bumped-version` does not return `initial_tag` if there are no conventional commits in the history. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-cliff.