Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/polite #2

Merged
merged 13 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,20 @@ name: Rust

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --no-run

- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --test help
755 changes: 755 additions & 0 deletions ACKNOWLEDGEMENTS-BuildAndDev.md

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions ACKNOWLEDGEMENTS-DepAndNames.md

Large diffs are not rendered by default.

1,480 changes: 740 additions & 740 deletions ACKNOWLEDGEMENTS-NameAndDeps.md

Large diffs are not rendered by default.

1,476 changes: 738 additions & 738 deletions ACKNOWLEDGEMENTS.md

Large diffs are not rendered by default.

52 changes: 51 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "acknowledgements-rs"
version = "0.1.2"
version = "1.0.0"
edition = "2021"
authors = ["a.nvlkv <acknowledgements_rs@proton.me>"]
license = "CC-BY-4.0"
Expand Down Expand Up @@ -39,3 +39,11 @@ cacache = { version = "13.0.0", default-features = false, features = [
"mmap",
] }
chrono = { version = "0.4.38", default-features = false, features = ["now"] }

[dev-dependencies]
insta = { version = "1.39.0", features = ["yaml"] }


[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`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.
It works with github and gitlab APIs. Only public repos are supported.

## Install

Expand All @@ -28,10 +28,12 @@ Options:
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]
-d, --depth <DEPTH>
Depth of scan, whether to include minor and optional depes contributors [default: Major]
-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>
Expand All @@ -48,17 +50,17 @@ Options:

#### Github access token

Be sure to provide one if you're waiting for limit reset for too long or too often.
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`

#### Depth
#### Breadth

- `Major` - Non-optional dependencies
- `Direct` - All dependencies
- `Indepth` - All dependencies including `[build-dependencies]` and `[dev-dependencies]`
- `NonOpt` - Non-optional dependencies
- `All` - All dependencies
- `BuildAndDev` - All dependencies including `[build-dependencies]` and `[dev-dependencies]`

#### Format

Expand All @@ -72,3 +74,4 @@ Links any repos not discoverable via `Cargo.toml`
- [`NameAndCount`](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS.md) - `acknowledge -p .`
- [`DepAndNames`](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS-DepAndNames.md) - `acknowledge -p . -f DepAndNames`
- [`NameAndDeps` ](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS-NameAndDeps.md) - `acknowledge -p . -f NameAndDeps`
- [`BuildAndDev`](https://github.com/anvlkv/acknowledgements/blob/main/ACKNOWLEDGEMENTS-BuildAndDev.md) - `acknowledge -p . -b BuildAndDev`
Loading