5 releases (2 stable)
1.0.1 | Jun 24, 2024 |
---|---|
1.0.0 | Jun 22, 2024 |
0.1.2 | Jun 22, 2024 |
0.1.1 | Jun 22, 2024 |
0.1.0 | Jun 20, 2024 |
#917 in Development tools
193 downloads per month
59KB
637 lines
Acknowledgements-rs
acknowledge
is a CLI tool for generating list of acknowledgements based on your Cargo.toml
file.
It works with github and gitlab APIs. Only public repos are supported.
Install
cargo install acknowledgements-rs
Usage
acknowledge is a simple CLI tool to analyze dependencies of a Cargo (rust) project and produce an ACKNOWLEDMENTS.md file listing (major) contributors of your dependencies
Usage: acknowledge [OPTIONS] --path <PATH> [COMMAND]
Commands:
clear-cache Clears cache
help Print this message or the help of the given subcommand(s)
Options:
-p, --path <PATH>
Path to Cargo project for analysis
-g, --gh-token <GH_TOKEN>
Running Acknowledgements on any project of reasonable size you're likely to face rate limits. Please provide a personal access token
-o, --output <OUTPUT>
Output file path, defaults to project path if not provided
-m, --mention
Whether to include @ (at) symbol in front of a github user's name
-f, --format <FORMAT>
Format of the output file [default: NameAndCount]
-b, --breadth <BREADTH>
Breadth of scan, whether to include optional, build and dev deps contributors [default: NonOpt]
-c, --contributions-threshold <CONTRIBUTIONS_THRESHOLD>
Min number of contributions to be included in the list, doesn't apply to sole contributors [default: 2]
-s, --sources <SOURCES>
List other sources, not specified in Cargo.toml
-t, --template <TEMPLATE>
Use your own template. See https://github.com/anvlkv/acknowledgements/blob/main/src/template.md?plain=1 for reference
-h, --help
Print help
-V, --version
Print version
Options
Github access token
Be sure to provide one if you're waiting for limit reset for too long or too often. No permissions are needed for this token.
Sources
Links any repos not discoverable via Cargo.toml
Breadth
NonOpt
- Non-optional dependenciesAll
- All dependenciesBuildAndDev
- All dependencies including[build-dependencies]
and[dev-dependencies]
Format
NameAndCount
- Name of the contributor and count of contributionsDepAndNames
- Name of the dependency, names of contributorsNameAndDeps
- Name of the contributor, names of dependencies where they contributed
Examples
NameAndCount
-acknowledge -p .
DepAndNames
-acknowledge -p . -f DepAndNames
NameAndDeps
-acknowledge -p . -f NameAndDeps
BuildAndDev
-acknowledge -p . -b BuildAndDev
Dependencies
~21–54MB
~892K SLoC