Remove trash files. (#140)
* Delete git-cliff-2.5.0-x86_64-unknown-linux-gnu.tar.gz Signed-off-by: HᴇCᴏᴅᴇs2ᴍᴜᴄʜ <wayne6324@gmail.com> * Delete bin directory Signed-off-by: HᴇCᴏᴅᴇs2ᴍᴜᴄʜ <wayne6324@gmail.com> * Delete git-cliff-2.5.0 directory Signed-off-by: HᴇCᴏᴅᴇs2ᴍᴜᴄʜ <wayne6324@gmail.com> --------- Signed-off-by: HᴇCᴏᴅᴇs2ᴍᴜᴄʜ <wayne6324@gmail.com>
This commit is contained in:
BIN
bin/git-cliff
BIN
bin/git-cliff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,176 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2021-2024 Orhun Parmaksız
|
|
||||||
Copyright (c) 2021-2024 git-cliff contributors
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
<p align="center">
|
|
||||||
<a href="https://git-cliff.org">
|
|
||||||
<img src="https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff-logo.png" width="300"></a><!-- </a> being on the same line as the <img> tag is intentional! -->
|
|
||||||
<br>
|
|
||||||
<a href="https://github.com/orhun/git-cliff/releases">
|
|
||||||
<img src="https://img.shields.io/github/v/release/orhun/git-cliff?style=flat&labelColor=1C2C2E&color=C96329&logo=GitHub&logoColor=white"></a>
|
|
||||||
<a href="https://crates.io/crates/git-cliff/">
|
|
||||||
<img src="https://img.shields.io/crates/v/git-cliff?style=flat&labelColor=1C2C2E&color=C96329&logo=Rust&logoColor=white"></a>
|
|
||||||
<a href="https://codecov.io/gh/orhun/git-cliff">
|
|
||||||
<img src="https://img.shields.io/codecov/c/gh/orhun/git-cliff?style=flat&labelColor=1C2C2E&color=C96329&logo=Codecov&logoColor=white"></a>
|
|
||||||
<br>
|
|
||||||
<a href="https://github.com/orhun/git-cliff/actions?query=workflow%3A%22Continuous+Integration%22">
|
|
||||||
<img src="https://img.shields.io/github/actions/workflow/status/orhun/git-cliff/ci.yml?style=flat&labelColor=1C2C2E&color=BEC5C9&logo=GitHub%20Actions&logoColor=BEC5C9"></a>
|
|
||||||
<a href="https://github.com/orhun/git-cliff/actions?query=workflow%3A%22Continuous+Deployment%22">
|
|
||||||
<img src="https://img.shields.io/github/actions/workflow/status/orhun/git-cliff/cd.yml?style=flat&labelColor=1C2C2E&color=BEC5C9&logo=GitHub%20Actions&logoColor=BEC5C9&label=deploy"></a>
|
|
||||||
<a href="https://hub.docker.com/r/orhunp/git-cliff">
|
|
||||||
<img src="https://img.shields.io/github/actions/workflow/status/orhun/git-cliff/docker.yml?style=flat&labelColor=1C2C2E&color=BEC5C9&label=docker&logo=Docker&logoColor=BEC5C9"></a>
|
|
||||||
<a href="https://docs.rs/git-cliff-core/">
|
|
||||||
<img src="https://img.shields.io/docsrs/git-cliff-core?style=flat&labelColor=1C2C2E&color=BEC5C9&logo=Rust&logoColor=BEC5C9"></a>
|
|
||||||
<br>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h4 align="center">
|
|
||||||
<a href="https://git-cliff.org/docs">Documentation</a> |
|
|
||||||
<a href="https://git-cliff.org">Website</a>
|
|
||||||
</h4>
|
|
||||||
|
|
||||||
**git-cliff** can generate [changelog](https://en.wikipedia.org/wiki/Changelog) files from the [Git](https://git-scm.com/) history by utilizing [conventional commits](https://git-cliff.org/docs/configuration/git#conventional_commits) as well as regex-powered [custom parsers](https://git-cliff.org/docs/configuration/git#commit_parsers). The [changelog template](https://git-cliff.org/docs/category/templating) can be customized with a [configuration file](https://git-cliff.org/docs/configuration) to match the desired format.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
Learn how to use **git-cliff** from the [documentation](https://git-cliff.org/docs).
|
|
||||||
|
|
||||||
- [Installation](https://git-cliff.org/docs/installation/)
|
|
||||||
- [Usage](https://git-cliff.org/docs/usage/examples)
|
|
||||||
- [Configuration](https://git-cliff.org/docs/configuration)
|
|
||||||
- [Templating](https://git-cliff.org/docs/category/templating)
|
|
||||||
|
|
||||||
## In The Media
|
|
||||||
|
|
||||||
- [Turning Git commits into changelog with git-cliff](https://www.youtube.com/watch?v=RWh8qbiLRts) - RustLab 2023 (Talk)
|
|
||||||
- [An Interview with Orhun of git-cliff](https://console.substack.com/p/console-141) - Console #141 (Newsletter)
|
|
||||||
- [KaiCode Open Source Festival 2024](https://www.kaicode.org/2024.html) (Second place winner)
|
|
||||||
|
|
||||||
## Editor Support
|
|
||||||
|
|
||||||
- [git-cliff.el](https://github.com/liuyinz/git-cliff.el) - Generate, update and release changelog in Emacs
|
|
||||||
|
|
||||||
## Similar/Related Projects
|
|
||||||
|
|
||||||
- [git-journal](https://github.com/saschagrunert/git-journal) - The Git Commit Message and Changelog Generation Framework
|
|
||||||
- [clog-cli](https://github.com/clog-tool/clog-cli) - Generate beautiful changelogs from your Git commit history
|
|
||||||
- [relnotes](https://crates.io/crates/relnotes) - A tool to automatically generate release notes for your project.
|
|
||||||
- [cocogitto](https://github.com/oknozor/cocogitto) - A set of CLI tools for the conventional commit and semver specifications.
|
|
||||||
- [cliff-jumper](https://github.com/favware/cliff-jumper) - A NodeJS CLI tool that combines git-cliff and
|
|
||||||
[conventional-recommended-bump](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-recommended-bump)
|
|
||||||
to semantically bump a NodeJS package and generate a git-cliff powered changelog.
|
|
||||||
- [release-plz](https://github.com/MarcoIeni/release-plz) - Release Rust packages from CI.
|
|
||||||
- [git-changelog-command-line](https://github.com/tomasbjerre/git-changelog-command-line) - Generate changelog and determine next version with conventional commits.
|
|
||||||
- [git-changelog](https://github.com/pawamoy/git-changelog): Automatic Changelog generator using Jinja2 templates.
|
|
||||||
|
|
||||||
## Contributors
|
|
||||||
|
|
||||||
Thanks goes to these wonderful people ✨
|
|
||||||
|
|
||||||
<a href="https://github.com/orhun/git-cliff/graphs/contributors">
|
|
||||||
<img src="https://contrib.rocks/image?repo=orhun/git-cliff" />
|
|
||||||
</a>
|
|
||||||
|
|
||||||
Made with [contrib.rocks](https://contrib.rocks).
|
|
||||||
|
|
||||||
## Socials
|
|
||||||
|
|
||||||
<a href="https://discord.gg/W3mAwMDWH4">
|
|
||||||
<img src="https://discord.com/api/guilds/1093977388892819553/embed.png?style=banner2"></a> <!-- </a> being on the same line as the <img> tag is intentional! -->
|
|
||||||
<br>
|
|
||||||
<a href="https://matrix.to/#/#git-cliff:matrix.org">
|
|
||||||
<img src="https://img.shields.io/matrix/git-cliff:matrix.org?style=flat&labelColor=1C2C2E&color=BEC5C9&logo=matrix&logoColor=BEC5C9&label=join%20matrix"></a>
|
|
||||||
<a href="https://discord.gg/W3mAwMDWH4">
|
|
||||||
<img src="https://img.shields.io/discord/1093977388892819553?style=flat&labelColor=1C2C2E&color=BEC5C9&logo=discord&logoColor=BEC5C9&label=join%20discord"></a>
|
|
||||||
<a href="https://twitter.com/git_cliff">
|
|
||||||
<img src="https://img.shields.io/twitter/follow/git_cliff?style=flat&labelColor=1C2C2E&color=BEC5C9&logo=twitter&logoColor=BEC5C9"></a>
|
|
||||||
<a href="https://fosstodon.org/@git_cliff">
|
|
||||||
<img src="https://img.shields.io/mastodon/follow/111545487385097711?domain=https%3A%2F%2Ffosstodon.org&style=flat&labelColor=1C2C2E&color=BEC5C9&logo=mastodon&logoColor=BEC5C9"></a>
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
Licensed under either of [Apache License Version 2.0](./LICENSE-APACHE) or [The MIT License](./LICENSE-MIT) at your option.
|
|
||||||
|
|
||||||
## Copyright
|
|
||||||
|
|
||||||
Copyright © 2021-2024, [git-cliff contributors](mailto:git-cliff@protonmail.com)
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
#compdef git-cliff
|
|
||||||
|
|
||||||
autoload -U is-at-least
|
|
||||||
|
|
||||||
_git-cliff() {
|
|
||||||
typeset -A opt_args
|
|
||||||
typeset -a _arguments_options
|
|
||||||
local ret=1
|
|
||||||
|
|
||||||
if is-at-least 5.2; then
|
|
||||||
_arguments_options=(-s -S -C)
|
|
||||||
else
|
|
||||||
_arguments_options=(-s -C)
|
|
||||||
fi
|
|
||||||
|
|
||||||
local context curcontext="$curcontext" state line
|
|
||||||
_arguments "${_arguments_options[@]}" : \
|
|
||||||
'-i+[Writes the default configuration file to cliff.toml]' \
|
|
||||||
'--init=[Writes the default configuration file to cliff.toml]' \
|
|
||||||
'-c+[Sets the configuration file]:PATH:_files' \
|
|
||||||
'--config=[Sets the configuration file]:PATH:_files' \
|
|
||||||
'-w+[Sets the working directory]:PATH:_files' \
|
|
||||||
'--workdir=[Sets the working directory]:PATH:_files' \
|
|
||||||
'*-r+[Sets the git repository]:PATH:_files' \
|
|
||||||
'*--repository=[Sets the git repository]:PATH:_files' \
|
|
||||||
'*--include-path=[Sets the path to include related commits]:PATTERN: ' \
|
|
||||||
'*--exclude-path=[Sets the path to exclude related commits]:PATTERN: ' \
|
|
||||||
'--tag-pattern=[Sets the regex for matching git tags]:PATTERN: ' \
|
|
||||||
'*--with-commit=[Sets custom commit messages to include in the changelog]:MSG: ' \
|
|
||||||
'--with-tag-message=[Sets custom message for the latest release]' \
|
|
||||||
'--ignore-tags=[Sets the tags to ignore in the changelog]:PATTERN: ' \
|
|
||||||
'--count-tags=[Sets the tags to count in the changelog]:PATTERN: ' \
|
|
||||||
'*--skip-commit=[Sets commits that will be skipped in the changelog]:SHA1: ' \
|
|
||||||
'-p+[Prepends entries to the given changelog file]:PATH:_files' \
|
|
||||||
'--prepend=[Prepends entries to the given changelog file]:PATH:_files' \
|
|
||||||
'-o+[Writes output to the given file]' \
|
|
||||||
'--output=[Writes output to the given file]' \
|
|
||||||
'-t+[Sets the tag for the latest version]:TAG: ' \
|
|
||||||
'--tag=[Sets the tag for the latest version]:TAG: ' \
|
|
||||||
'--bump=[Bumps the version for unreleased changes. Optionally with specified version]' \
|
|
||||||
'-b+[Sets the template for the changelog body]:TEMPLATE: ' \
|
|
||||||
'--body=[Sets the template for the changelog body]:TEMPLATE: ' \
|
|
||||||
'--from-context=[Generates changelog from a JSON context]:PATH:_files' \
|
|
||||||
'-s+[Strips the given parts from the changelog]:PART:(header footer all)' \
|
|
||||||
'--strip=[Strips the given parts from the changelog]:PART:(header footer all)' \
|
|
||||||
'--sort=[Sets sorting of the commits inside sections]:SORT:(oldest newest)' \
|
|
||||||
'--github-token=[Sets the GitHub API token]:TOKEN: ' \
|
|
||||||
'--github-repo=[Sets the GitHub repository]:OWNER/REPO: ' \
|
|
||||||
'--gitlab-token=[Sets the GitLab API token]:TOKEN: ' \
|
|
||||||
'--gitlab-repo=[Sets the GitLab repository]:OWNER/REPO: ' \
|
|
||||||
'--gitea-token=[Sets the Gitea API token]:TOKEN: ' \
|
|
||||||
'--gitea-repo=[Sets the GitLab repository]:OWNER/REPO: ' \
|
|
||||||
'--bitbucket-token=[Sets the Bitbucket API token]:TOKEN: ' \
|
|
||||||
'--bitbucket-repo=[Sets the Bitbucket repository]:OWNER/REPO: ' \
|
|
||||||
'-h[Prints help information]' \
|
|
||||||
'--help[Prints help information]' \
|
|
||||||
'-V[Prints version information]' \
|
|
||||||
'--version[Prints version information]' \
|
|
||||||
'*-v[Increases the logging verbosity]' \
|
|
||||||
'*--verbose[Increases the logging verbosity]' \
|
|
||||||
'--bumped-version[Prints bumped version for unreleased changes]' \
|
|
||||||
'-l[Processes the commits starting from the latest tag]' \
|
|
||||||
'--latest[Processes the commits starting from the latest tag]' \
|
|
||||||
'--current[Processes the commits that belong to the current tag]' \
|
|
||||||
'-u[Processes the commits that do not belong to a tag]' \
|
|
||||||
'--unreleased[Processes the commits that do not belong to a tag]' \
|
|
||||||
'--topo-order[Sorts the tags topologically]' \
|
|
||||||
'--no-exec[Disables the external command execution]' \
|
|
||||||
'-x[Prints changelog context as JSON]' \
|
|
||||||
'--context[Prints changelog context as JSON]' \
|
|
||||||
'::range -- Sets the commit range to process:' \
|
|
||||||
&& ret=0
|
|
||||||
}
|
|
||||||
|
|
||||||
(( $+functions[_git-cliff_commands] )) ||
|
|
||||||
_git-cliff_commands() {
|
|
||||||
local commands; commands=()
|
|
||||||
_describe -t commands 'git-cliff commands' commands "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ "$funcstack[1]" = "_git-cliff" ]; then
|
|
||||||
_git-cliff "$@"
|
|
||||||
else
|
|
||||||
compdef _git-cliff git-cliff
|
|
||||||
fi
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
|
|
||||||
using namespace System.Management.Automation
|
|
||||||
using namespace System.Management.Automation.Language
|
|
||||||
|
|
||||||
Register-ArgumentCompleter -Native -CommandName 'git-cliff' -ScriptBlock {
|
|
||||||
param($wordToComplete, $commandAst, $cursorPosition)
|
|
||||||
|
|
||||||
$commandElements = $commandAst.CommandElements
|
|
||||||
$command = @(
|
|
||||||
'git-cliff'
|
|
||||||
for ($i = 1; $i -lt $commandElements.Count; $i++) {
|
|
||||||
$element = $commandElements[$i]
|
|
||||||
if ($element -isnot [StringConstantExpressionAst] -or
|
|
||||||
$element.StringConstantType -ne [StringConstantType]::BareWord -or
|
|
||||||
$element.Value.StartsWith('-') -or
|
|
||||||
$element.Value -eq $wordToComplete) {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
$element.Value
|
|
||||||
}) -join ';'
|
|
||||||
|
|
||||||
$completions = @(switch ($command) {
|
|
||||||
'git-cliff' {
|
|
||||||
[CompletionResult]::new('-i', '-i', [CompletionResultType]::ParameterName, 'Writes the default configuration file to cliff.toml')
|
|
||||||
[CompletionResult]::new('--init', '--init', [CompletionResultType]::ParameterName, 'Writes the default configuration file to cliff.toml')
|
|
||||||
[CompletionResult]::new('-c', '-c', [CompletionResultType]::ParameterName, 'Sets the configuration file')
|
|
||||||
[CompletionResult]::new('--config', '--config', [CompletionResultType]::ParameterName, 'Sets the configuration file')
|
|
||||||
[CompletionResult]::new('-w', '-w', [CompletionResultType]::ParameterName, 'Sets the working directory')
|
|
||||||
[CompletionResult]::new('--workdir', '--workdir', [CompletionResultType]::ParameterName, 'Sets the working directory')
|
|
||||||
[CompletionResult]::new('-r', '-r', [CompletionResultType]::ParameterName, 'Sets the git repository')
|
|
||||||
[CompletionResult]::new('--repository', '--repository', [CompletionResultType]::ParameterName, 'Sets the git repository')
|
|
||||||
[CompletionResult]::new('--include-path', '--include-path', [CompletionResultType]::ParameterName, 'Sets the path to include related commits')
|
|
||||||
[CompletionResult]::new('--exclude-path', '--exclude-path', [CompletionResultType]::ParameterName, 'Sets the path to exclude related commits')
|
|
||||||
[CompletionResult]::new('--tag-pattern', '--tag-pattern', [CompletionResultType]::ParameterName, 'Sets the regex for matching git tags')
|
|
||||||
[CompletionResult]::new('--with-commit', '--with-commit', [CompletionResultType]::ParameterName, 'Sets custom commit messages to include in the changelog')
|
|
||||||
[CompletionResult]::new('--with-tag-message', '--with-tag-message', [CompletionResultType]::ParameterName, 'Sets custom message for the latest release')
|
|
||||||
[CompletionResult]::new('--ignore-tags', '--ignore-tags', [CompletionResultType]::ParameterName, 'Sets the tags to ignore in the changelog')
|
|
||||||
[CompletionResult]::new('--count-tags', '--count-tags', [CompletionResultType]::ParameterName, 'Sets the tags to count in the changelog')
|
|
||||||
[CompletionResult]::new('--skip-commit', '--skip-commit', [CompletionResultType]::ParameterName, 'Sets commits that will be skipped in the changelog')
|
|
||||||
[CompletionResult]::new('-p', '-p', [CompletionResultType]::ParameterName, 'Prepends entries to the given changelog file')
|
|
||||||
[CompletionResult]::new('--prepend', '--prepend', [CompletionResultType]::ParameterName, 'Prepends entries to the given changelog file')
|
|
||||||
[CompletionResult]::new('-o', '-o', [CompletionResultType]::ParameterName, 'Writes output to the given file')
|
|
||||||
[CompletionResult]::new('--output', '--output', [CompletionResultType]::ParameterName, 'Writes output to the given file')
|
|
||||||
[CompletionResult]::new('-t', '-t', [CompletionResultType]::ParameterName, 'Sets the tag for the latest version')
|
|
||||||
[CompletionResult]::new('--tag', '--tag', [CompletionResultType]::ParameterName, 'Sets the tag for the latest version')
|
|
||||||
[CompletionResult]::new('--bump', '--bump', [CompletionResultType]::ParameterName, 'Bumps the version for unreleased changes. Optionally with specified version')
|
|
||||||
[CompletionResult]::new('-b', '-b', [CompletionResultType]::ParameterName, 'Sets the template for the changelog body')
|
|
||||||
[CompletionResult]::new('--body', '--body', [CompletionResultType]::ParameterName, 'Sets the template for the changelog body')
|
|
||||||
[CompletionResult]::new('--from-context', '--from-context', [CompletionResultType]::ParameterName, 'Generates changelog from a JSON context')
|
|
||||||
[CompletionResult]::new('-s', '-s', [CompletionResultType]::ParameterName, 'Strips the given parts from the changelog')
|
|
||||||
[CompletionResult]::new('--strip', '--strip', [CompletionResultType]::ParameterName, 'Strips the given parts from the changelog')
|
|
||||||
[CompletionResult]::new('--sort', '--sort', [CompletionResultType]::ParameterName, 'Sets sorting of the commits inside sections')
|
|
||||||
[CompletionResult]::new('--github-token', '--github-token', [CompletionResultType]::ParameterName, 'Sets the GitHub API token')
|
|
||||||
[CompletionResult]::new('--github-repo', '--github-repo', [CompletionResultType]::ParameterName, 'Sets the GitHub repository')
|
|
||||||
[CompletionResult]::new('--gitlab-token', '--gitlab-token', [CompletionResultType]::ParameterName, 'Sets the GitLab API token')
|
|
||||||
[CompletionResult]::new('--gitlab-repo', '--gitlab-repo', [CompletionResultType]::ParameterName, 'Sets the GitLab repository')
|
|
||||||
[CompletionResult]::new('--gitea-token', '--gitea-token', [CompletionResultType]::ParameterName, 'Sets the Gitea API token')
|
|
||||||
[CompletionResult]::new('--gitea-repo', '--gitea-repo', [CompletionResultType]::ParameterName, 'Sets the GitLab repository')
|
|
||||||
[CompletionResult]::new('--bitbucket-token', '--bitbucket-token', [CompletionResultType]::ParameterName, 'Sets the Bitbucket API token')
|
|
||||||
[CompletionResult]::new('--bitbucket-repo', '--bitbucket-repo', [CompletionResultType]::ParameterName, 'Sets the Bitbucket repository')
|
|
||||||
[CompletionResult]::new('-h', '-h', [CompletionResultType]::ParameterName, 'Prints help information')
|
|
||||||
[CompletionResult]::new('--help', '--help', [CompletionResultType]::ParameterName, 'Prints help information')
|
|
||||||
[CompletionResult]::new('-V', '-V ', [CompletionResultType]::ParameterName, 'Prints version information')
|
|
||||||
[CompletionResult]::new('--version', '--version', [CompletionResultType]::ParameterName, 'Prints version information')
|
|
||||||
[CompletionResult]::new('-v', '-v', [CompletionResultType]::ParameterName, 'Increases the logging verbosity')
|
|
||||||
[CompletionResult]::new('--verbose', '--verbose', [CompletionResultType]::ParameterName, 'Increases the logging verbosity')
|
|
||||||
[CompletionResult]::new('--bumped-version', '--bumped-version', [CompletionResultType]::ParameterName, 'Prints bumped version for unreleased changes')
|
|
||||||
[CompletionResult]::new('-l', '-l', [CompletionResultType]::ParameterName, 'Processes the commits starting from the latest tag')
|
|
||||||
[CompletionResult]::new('--latest', '--latest', [CompletionResultType]::ParameterName, 'Processes the commits starting from the latest tag')
|
|
||||||
[CompletionResult]::new('--current', '--current', [CompletionResultType]::ParameterName, 'Processes the commits that belong to the current tag')
|
|
||||||
[CompletionResult]::new('-u', '-u', [CompletionResultType]::ParameterName, 'Processes the commits that do not belong to a tag')
|
|
||||||
[CompletionResult]::new('--unreleased', '--unreleased', [CompletionResultType]::ParameterName, 'Processes the commits that do not belong to a tag')
|
|
||||||
[CompletionResult]::new('--topo-order', '--topo-order', [CompletionResultType]::ParameterName, 'Sorts the tags topologically')
|
|
||||||
[CompletionResult]::new('--no-exec', '--no-exec', [CompletionResultType]::ParameterName, 'Disables the external command execution')
|
|
||||||
[CompletionResult]::new('-x', '-x', [CompletionResultType]::ParameterName, 'Prints changelog context as JSON')
|
|
||||||
[CompletionResult]::new('--context', '--context', [CompletionResultType]::ParameterName, 'Prints changelog context as JSON')
|
|
||||||
break
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
$completions.Where{ $_.CompletionText -like "$wordToComplete*" } |
|
|
||||||
Sort-Object -Property ListItemText
|
|
||||||
}
|
|
||||||
@@ -1,190 +0,0 @@
|
|||||||
_git-cliff() {
|
|
||||||
local i cur prev opts cmd
|
|
||||||
COMPREPLY=()
|
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
||||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
||||||
cmd=""
|
|
||||||
opts=""
|
|
||||||
|
|
||||||
for i in ${COMP_WORDS[@]}
|
|
||||||
do
|
|
||||||
case "${cmd},${i}" in
|
|
||||||
",$1")
|
|
||||||
cmd="git__cliff"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
case "${cmd}" in
|
|
||||||
git__cliff)
|
|
||||||
opts="-h -V -v -i -c -w -r -p -o -t -b -l -u -x -s --help --version --verbose --init --config --workdir --repository --include-path --exclude-path --tag-pattern --with-commit --with-tag-message --ignore-tags --count-tags --skip-commit --prepend --output --tag --bump --bumped-version --body --latest --current --unreleased --topo-order --no-exec --context --from-context --strip --sort --github-token --github-repo --gitlab-token --gitlab-repo --gitea-token --gitea-repo --bitbucket-token --bitbucket-repo [RANGE]"
|
|
||||||
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
|
||||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
case "${prev}" in
|
|
||||||
--init)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-i)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--config)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-c)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--workdir)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-w)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--repository)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-r)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--include-path)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--exclude-path)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--tag-pattern)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--with-commit)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--with-tag-message)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--ignore-tags)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--count-tags)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--skip-commit)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--prepend)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-p)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--output)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-o)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--tag)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-t)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--bump)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--body)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-b)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--from-context)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--strip)
|
|
||||||
COMPREPLY=($(compgen -W "header footer all" -- "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
-s)
|
|
||||||
COMPREPLY=($(compgen -W "header footer all" -- "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--sort)
|
|
||||||
COMPREPLY=($(compgen -W "oldest newest" -- "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--github-token)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--github-repo)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--gitlab-token)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--gitlab-repo)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--gitea-token)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--gitea-repo)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--bitbucket-token)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
--bitbucket-repo)
|
|
||||||
COMPREPLY=($(compgen -f "${cur}"))
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
COMPREPLY=()
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
|
|
||||||
complete -F _git-cliff -o nosort -o bashdefault -o default git-cliff
|
|
||||||
else
|
|
||||||
complete -F _git-cliff -o bashdefault -o default git-cliff
|
|
||||||
fi
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
|
|
||||||
use builtin;
|
|
||||||
use str;
|
|
||||||
|
|
||||||
set edit:completion:arg-completer[git-cliff] = {|@words|
|
|
||||||
fn spaces {|n|
|
|
||||||
builtin:repeat $n ' ' | str:join ''
|
|
||||||
}
|
|
||||||
fn cand {|text desc|
|
|
||||||
edit:complex-candidate $text &display=$text' '(spaces (- 14 (wcswidth $text)))$desc
|
|
||||||
}
|
|
||||||
var command = 'git-cliff'
|
|
||||||
for word $words[1..-1] {
|
|
||||||
if (str:has-prefix $word '-') {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
set command = $command';'$word
|
|
||||||
}
|
|
||||||
var completions = [
|
|
||||||
&'git-cliff'= {
|
|
||||||
cand -i 'Writes the default configuration file to cliff.toml'
|
|
||||||
cand --init 'Writes the default configuration file to cliff.toml'
|
|
||||||
cand -c 'Sets the configuration file'
|
|
||||||
cand --config 'Sets the configuration file'
|
|
||||||
cand -w 'Sets the working directory'
|
|
||||||
cand --workdir 'Sets the working directory'
|
|
||||||
cand -r 'Sets the git repository'
|
|
||||||
cand --repository 'Sets the git repository'
|
|
||||||
cand --include-path 'Sets the path to include related commits'
|
|
||||||
cand --exclude-path 'Sets the path to exclude related commits'
|
|
||||||
cand --tag-pattern 'Sets the regex for matching git tags'
|
|
||||||
cand --with-commit 'Sets custom commit messages to include in the changelog'
|
|
||||||
cand --with-tag-message 'Sets custom message for the latest release'
|
|
||||||
cand --ignore-tags 'Sets the tags to ignore in the changelog'
|
|
||||||
cand --count-tags 'Sets the tags to count in the changelog'
|
|
||||||
cand --skip-commit 'Sets commits that will be skipped in the changelog'
|
|
||||||
cand -p 'Prepends entries to the given changelog file'
|
|
||||||
cand --prepend 'Prepends entries to the given changelog file'
|
|
||||||
cand -o 'Writes output to the given file'
|
|
||||||
cand --output 'Writes output to the given file'
|
|
||||||
cand -t 'Sets the tag for the latest version'
|
|
||||||
cand --tag 'Sets the tag for the latest version'
|
|
||||||
cand --bump 'Bumps the version for unreleased changes. Optionally with specified version'
|
|
||||||
cand -b 'Sets the template for the changelog body'
|
|
||||||
cand --body 'Sets the template for the changelog body'
|
|
||||||
cand --from-context 'Generates changelog from a JSON context'
|
|
||||||
cand -s 'Strips the given parts from the changelog'
|
|
||||||
cand --strip 'Strips the given parts from the changelog'
|
|
||||||
cand --sort 'Sets sorting of the commits inside sections'
|
|
||||||
cand --github-token 'Sets the GitHub API token'
|
|
||||||
cand --github-repo 'Sets the GitHub repository'
|
|
||||||
cand --gitlab-token 'Sets the GitLab API token'
|
|
||||||
cand --gitlab-repo 'Sets the GitLab repository'
|
|
||||||
cand --gitea-token 'Sets the Gitea API token'
|
|
||||||
cand --gitea-repo 'Sets the GitLab repository'
|
|
||||||
cand --bitbucket-token 'Sets the Bitbucket API token'
|
|
||||||
cand --bitbucket-repo 'Sets the Bitbucket repository'
|
|
||||||
cand -h 'Prints help information'
|
|
||||||
cand --help 'Prints help information'
|
|
||||||
cand -V 'Prints version information'
|
|
||||||
cand --version 'Prints version information'
|
|
||||||
cand -v 'Increases the logging verbosity'
|
|
||||||
cand --verbose 'Increases the logging verbosity'
|
|
||||||
cand --bumped-version 'Prints bumped version for unreleased changes'
|
|
||||||
cand -l 'Processes the commits starting from the latest tag'
|
|
||||||
cand --latest 'Processes the commits starting from the latest tag'
|
|
||||||
cand --current 'Processes the commits that belong to the current tag'
|
|
||||||
cand -u 'Processes the commits that do not belong to a tag'
|
|
||||||
cand --unreleased 'Processes the commits that do not belong to a tag'
|
|
||||||
cand --topo-order 'Sorts the tags topologically'
|
|
||||||
cand --no-exec 'Disables the external command execution'
|
|
||||||
cand -x 'Prints changelog context as JSON'
|
|
||||||
cand --context 'Prints changelog context as JSON'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
$completions[$command]
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
complete -c git-cliff -s i -l init -d 'Writes the default configuration file to cliff.toml' -r
|
|
||||||
complete -c git-cliff -s c -l config -d 'Sets the configuration file' -r -F
|
|
||||||
complete -c git-cliff -s w -l workdir -d 'Sets the working directory' -r -F
|
|
||||||
complete -c git-cliff -s r -l repository -d 'Sets the git repository' -r -F
|
|
||||||
complete -c git-cliff -l include-path -d 'Sets the path to include related commits' -r
|
|
||||||
complete -c git-cliff -l exclude-path -d 'Sets the path to exclude related commits' -r
|
|
||||||
complete -c git-cliff -l tag-pattern -d 'Sets the regex for matching git tags' -r
|
|
||||||
complete -c git-cliff -l with-commit -d 'Sets custom commit messages to include in the changelog' -r
|
|
||||||
complete -c git-cliff -l with-tag-message -d 'Sets custom message for the latest release' -r
|
|
||||||
complete -c git-cliff -l ignore-tags -d 'Sets the tags to ignore in the changelog' -r
|
|
||||||
complete -c git-cliff -l count-tags -d 'Sets the tags to count in the changelog' -r
|
|
||||||
complete -c git-cliff -l skip-commit -d 'Sets commits that will be skipped in the changelog' -r
|
|
||||||
complete -c git-cliff -s p -l prepend -d 'Prepends entries to the given changelog file' -r -F
|
|
||||||
complete -c git-cliff -s o -l output -d 'Writes output to the given file' -r -F
|
|
||||||
complete -c git-cliff -s t -l tag -d 'Sets the tag for the latest version' -r
|
|
||||||
complete -c git-cliff -l bump -d 'Bumps the version for unreleased changes. Optionally with specified version' -r
|
|
||||||
complete -c git-cliff -s b -l body -d 'Sets the template for the changelog body' -r
|
|
||||||
complete -c git-cliff -l from-context -d 'Generates changelog from a JSON context' -r -F
|
|
||||||
complete -c git-cliff -s s -l strip -d 'Strips the given parts from the changelog' -r -f -a "{header\t'',footer\t'',all\t''}"
|
|
||||||
complete -c git-cliff -l sort -d 'Sets sorting of the commits inside sections' -r -f -a "{oldest\t'',newest\t''}"
|
|
||||||
complete -c git-cliff -l github-token -d 'Sets the GitHub API token' -r
|
|
||||||
complete -c git-cliff -l github-repo -d 'Sets the GitHub repository' -r
|
|
||||||
complete -c git-cliff -l gitlab-token -d 'Sets the GitLab API token' -r
|
|
||||||
complete -c git-cliff -l gitlab-repo -d 'Sets the GitLab repository' -r
|
|
||||||
complete -c git-cliff -l gitea-token -d 'Sets the Gitea API token' -r
|
|
||||||
complete -c git-cliff -l gitea-repo -d 'Sets the GitLab repository' -r
|
|
||||||
complete -c git-cliff -l bitbucket-token -d 'Sets the Bitbucket API token' -r
|
|
||||||
complete -c git-cliff -l bitbucket-repo -d 'Sets the Bitbucket repository' -r
|
|
||||||
complete -c git-cliff -s h -l help -d 'Prints help information'
|
|
||||||
complete -c git-cliff -s V -l version -d 'Prints version information'
|
|
||||||
complete -c git-cliff -s v -l verbose -d 'Increases the logging verbosity'
|
|
||||||
complete -c git-cliff -l bumped-version -d 'Prints bumped version for unreleased changes'
|
|
||||||
complete -c git-cliff -s l -l latest -d 'Processes the commits starting from the latest tag'
|
|
||||||
complete -c git-cliff -l current -d 'Processes the commits that belong to the current tag'
|
|
||||||
complete -c git-cliff -s u -l unreleased -d 'Processes the commits that do not belong to a tag'
|
|
||||||
complete -c git-cliff -l topo-order -d 'Sorts the tags topologically'
|
|
||||||
complete -c git-cliff -l no-exec -d 'Disables the external command execution'
|
|
||||||
complete -c git-cliff -s x -l context -d 'Prints changelog context as JSON'
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,211 +0,0 @@
|
|||||||
.ie \n(.g .ds Aq \(aq
|
|
||||||
.el .ds Aq '
|
|
||||||
.TH git-cliff 1 "git-cliff 2.5.0"
|
|
||||||
.SH NAME
|
|
||||||
git\-cliff \- A highly customizable changelog generator ⛰️
|
|
||||||
.SH SYNOPSIS
|
|
||||||
\fBgit\-cliff\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fB\-v\fR|\fB\-\-verbose\fR]... [\fB\-i\fR|\fB\-\-init\fR] [\fB\-c\fR|\fB\-\-config\fR] [\fB\-w\fR|\fB\-\-workdir\fR] [\fB\-r\fR|\fB\-\-repository\fR] [\fB\-\-include\-path\fR] [\fB\-\-exclude\-path\fR] [\fB\-\-tag\-pattern\fR] [\fB\-\-with\-commit\fR] [\fB\-\-with\-tag\-message\fR] [\fB\-\-ignore\-tags\fR] [\fB\-\-count\-tags\fR] [\fB\-\-skip\-commit\fR] [\fB\-p\fR|\fB\-\-prepend\fR] [\fB\-o\fR|\fB\-\-output\fR] [\fB\-t\fR|\fB\-\-tag\fR] [\fB\-\-bump\fR] [\fB\-\-bumped\-version\fR] [\fB\-b\fR|\fB\-\-body\fR] [\fB\-l\fR|\fB\-\-latest\fR] [\fB\-\-current\fR] [\fB\-u\fR|\fB\-\-unreleased\fR] [\fB\-\-topo\-order\fR] [\fB\-\-no\-exec\fR] [\fB\-x\fR|\fB\-\-context\fR] [\fB\-\-from\-context\fR] [\fB\-s\fR|\fB\-\-strip\fR] [\fB\-\-sort\fR] [\fB\-\-github\-token\fR] [\fB\-\-github\-repo\fR] [\fB\-\-gitlab\-token\fR] [\fB\-\-gitlab\-repo\fR] [\fB\-\-gitea\-token\fR] [\fB\-\-gitea\-repo\fR] [\fB\-\-bitbucket\-token\fR] [\fB\-\-bitbucket\-repo\fR] [\fIRANGE\fR]
|
|
||||||
.SH DESCRIPTION
|
|
||||||
A highly customizable changelog generator ⛰️
|
|
||||||
.SH OPTIONS
|
|
||||||
.TP
|
|
||||||
\fB\-h\fR, \fB\-\-help\fR
|
|
||||||
Prints help information
|
|
||||||
.TP
|
|
||||||
\fB\-V\fR, \fB\-\-version\fR
|
|
||||||
Prints version information
|
|
||||||
.TP
|
|
||||||
\fB\-v\fR, \fB\-\-verbose\fR
|
|
||||||
Increases the logging verbosity
|
|
||||||
.TP
|
|
||||||
\fB\-i\fR, \fB\-\-init\fR=\fICONFIG\fR
|
|
||||||
Writes the default configuration file to cliff.toml
|
|
||||||
.TP
|
|
||||||
\fB\-c\fR, \fB\-\-config\fR=\fIPATH\fR [default: cliff.toml]
|
|
||||||
Sets the configuration file
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_CONFIG\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-w\fR, \fB\-\-workdir\fR=\fIPATH\fR
|
|
||||||
Sets the working directory
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_WORKDIR\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-r\fR, \fB\-\-repository\fR=\fIPATH\fR
|
|
||||||
Sets the git repository
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_REPOSITORY\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-include\-path\fR=\fIPATTERN\fR
|
|
||||||
Sets the path to include related commits
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_INCLUDE_PATH\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-exclude\-path\fR=\fIPATTERN\fR
|
|
||||||
Sets the path to exclude related commits
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_EXCLUDE_PATH\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-tag\-pattern\fR=\fIPATTERN\fR
|
|
||||||
Sets the regex for matching git tags
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_TAG_PATTERN\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-with\-commit\fR=\fIMSG\fR
|
|
||||||
Sets custom commit messages to include in the changelog
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_WITH_COMMIT\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-with\-tag\-message\fR=\fIMSG\fR
|
|
||||||
Sets custom message for the latest release
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_WITH_TAG_MESSAGE\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-ignore\-tags\fR=\fIPATTERN\fR
|
|
||||||
Sets the tags to ignore in the changelog
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_IGNORE_TAGS\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-count\-tags\fR=\fIPATTERN\fR
|
|
||||||
Sets the tags to count in the changelog
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_COUNT_TAGS\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-skip\-commit\fR=\fISHA1\fR
|
|
||||||
Sets commits that will be skipped in the changelog
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_SKIP_COMMIT\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-p\fR, \fB\-\-prepend\fR=\fIPATH\fR
|
|
||||||
Prepends entries to the given changelog file
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_PREPEND\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-o\fR, \fB\-\-output\fR=\fIPATH\fR
|
|
||||||
Writes output to the given file
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_OUTPUT\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-t\fR, \fB\-\-tag\fR=\fITAG\fR
|
|
||||||
Sets the tag for the latest version
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_TAG\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-bump\fR=\fIBUMP\fR
|
|
||||||
Bumps the version for unreleased changes. Optionally with specified version
|
|
||||||
.TP
|
|
||||||
\fB\-\-bumped\-version\fR
|
|
||||||
Prints bumped version for unreleased changes
|
|
||||||
.TP
|
|
||||||
\fB\-b\fR, \fB\-\-body\fR=\fITEMPLATE\fR
|
|
||||||
Sets the template for the changelog body
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_TEMPLATE\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-l\fR, \fB\-\-latest\fR
|
|
||||||
Processes the commits starting from the latest tag
|
|
||||||
.TP
|
|
||||||
\fB\-\-current\fR
|
|
||||||
Processes the commits that belong to the current tag
|
|
||||||
.TP
|
|
||||||
\fB\-u\fR, \fB\-\-unreleased\fR
|
|
||||||
Processes the commits that do not belong to a tag
|
|
||||||
.TP
|
|
||||||
\fB\-\-topo\-order\fR
|
|
||||||
Sorts the tags topologically
|
|
||||||
.TP
|
|
||||||
\fB\-\-no\-exec\fR
|
|
||||||
Disables the external command execution
|
|
||||||
.TP
|
|
||||||
\fB\-x\fR, \fB\-\-context\fR
|
|
||||||
Prints changelog context as JSON
|
|
||||||
.TP
|
|
||||||
\fB\-\-from\-context\fR=\fIPATH\fR
|
|
||||||
Generates changelog from a JSON context
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGIT_CLIFF_CONTEXT\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-s\fR, \fB\-\-strip\fR=\fIPART\fR
|
|
||||||
Strips the given parts from the changelog
|
|
||||||
.br
|
|
||||||
|
|
||||||
.br
|
|
||||||
[\fIpossible values: \fRheader, footer, all]
|
|
||||||
.TP
|
|
||||||
\fB\-\-sort\fR=\fISORT\fR [default: oldest]
|
|
||||||
Sets sorting of the commits inside sections
|
|
||||||
.br
|
|
||||||
|
|
||||||
.br
|
|
||||||
[\fIpossible values: \fRoldest, newest]
|
|
||||||
.TP
|
|
||||||
\fB\-\-github\-token\fR=\fITOKEN\fR
|
|
||||||
Sets the GitHub API token
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGITHUB_TOKEN\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-github\-repo\fR=\fIOWNER/REPO\fR
|
|
||||||
Sets the GitHub repository
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGITHUB_REPO\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-gitlab\-token\fR=\fITOKEN\fR
|
|
||||||
Sets the GitLab API token
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGITLAB_TOKEN\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-gitlab\-repo\fR=\fIOWNER/REPO\fR
|
|
||||||
Sets the GitLab repository
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGITLAB_REPO\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-gitea\-token\fR=\fITOKEN\fR
|
|
||||||
Sets the Gitea API token
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGITEA_TOKEN\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-gitea\-repo\fR=\fIOWNER/REPO\fR
|
|
||||||
Sets the GitLab repository
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBGITEA_REPO\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-bitbucket\-token\fR=\fITOKEN\fR
|
|
||||||
Sets the Bitbucket API token
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBBITBUCKET_TOKEN\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
\fB\-\-bitbucket\-repo\fR=\fIOWNER/REPO\fR
|
|
||||||
Sets the Bitbucket repository
|
|
||||||
.RS
|
|
||||||
May also be specified with the \fBBITBUCKET_REPO\fR environment variable.
|
|
||||||
.RE
|
|
||||||
.TP
|
|
||||||
[\fIRANGE\fR]
|
|
||||||
Sets the commit range to process
|
|
||||||
.SH VERSION
|
|
||||||
v2.5.0
|
|
||||||
.SH AUTHORS
|
|
||||||
git\-cliff contributors <git\-cliff@protonmail.com>
|
|
||||||
Reference in New Issue
Block a user