No description
  • Rust 92.2%
  • Shell 7.8%
Find a file
2026-04-19 12:05:48 +01:00
src refactor: make gitignore flow testable with mocked HTTP 2026-04-19 11:59:41 +01:00
tests refactor: make gitignore flow testable with mocked HTTP 2026-04-19 11:59:41 +01:00
.gitignore update gitignore 2026-04-19 12:05:48 +01:00
Cargo.lock refactor: make gitignore flow testable with mocked HTTP 2026-04-19 11:59:41 +01:00
Cargo.toml refactor: make gitignore flow testable with mocked HTTP 2026-04-19 11:59:41 +01:00
LICENSE Add LICENSE 2021-06-08 17:24:57 +00:00
PKGBUILD Added PKGBUILD for arch linux. 2021-06-08 18:46:48 +01:00
README.md refactor: make gitignore flow testable with mocked HTTP 2026-04-19 11:59:41 +01:00

gitnore

This CLI utility uses gitignore.io to create a suitable gitignore, given a list of templates.

Examples

$ gitnore --help
gitnore 0.1.0
Samuel Collins <samuel.collins@live.co.uk>
Quickly generate gitignore files from a terminal.

USAGE:
    gitnore [FLAGS] [OPTIONS] <templates|--completions <completions>|--complete-template <complete-template>>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information
        --verbose

OPTIONS:
        --completions <completions>    Generate completions for a specified shell. [possible values: bash, fish, zsh]
        --out <out>

ARGS:
    <templates>...    A list of gitignore templates to use.
$ gitnore --verbose python VisualStudioCode
Templates selected: python,VisualStudioCode
Retrieving gitignore...
Writing gitignore to file...
Done.

Development

Run formatting, linting, and the default offline test suite:

cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test

Run only the core integration flow tests:

cargo test --test core_flow

Run the optional live API smoke test:

LIVE_API_TESTS=1 cargo test --test live_api_smoke