kignore

Crates.iokignore
lib.rskignore
version
sourcesrc
created_at2022-10-20 23:04:04.297494
updated_at2024-12-22 13:54:28.683928
descriptionkignore is a tool for easily adding patterns to .gitignore and cleaning up afterwards
homepage
repositoryhttps://git.front.kjuulh.io/kjuulh/gitignore
max_upload_size
id693014
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Kasper Juul Hermansen (kjuulh)

documentation

https://docs.rs/kignore

README

Git ignore (kignore)

Is an extension for easily adding ignored files to .gitignore files, when added it will by default also try to remove any files matching the pattern added to .gitignore, this is by default also run in interactive mode, giving you the option to confirm or deny

$ kignore 'node_modules/'
found .gitignore .../some-path/.gitignore
Added node_modules/ to .gitignore
Removed node_modules/ from git index
$ git ignore 'node_modules/'
found .gitignore .../some-path/.gitignore
Added node_modules/ to .gitignore
Removed node_modules/ from git index

Installation

Cargo

Cargo will only pull the kignore command and won't add a subcommand to `git.

$ cargo install kignore
$ cargo binstall kignore # binstall will warn that git.front.kjuulh.io isn't a valid repo, it is still installable though

Post install

To get the git ignore subcommand working you will need to have the file git-ignore available on your path

# zsh
eval "kignore init zsh"

# shell
eval "kignore init sh"

# bash
eval "kignore init bash"
Commit count: 0

cargo fmt