This commit is contained in:
Christian Zangl 2024-08-21 20:30:07 +02:00
parent 94945925a4
commit fb45c82625
No known key found for this signature in database
GPG Key ID: 6D468AC36E2A4B3D

View File

@ -8,10 +8,10 @@ chkbit is a tool that ensures the safety of your files by checking if their *dat
- [How it works](#how-it-works) - [How it works](#how-it-works)
- [Installation](#installation) - [Installation](#installation)
- [chkbit as a Go module](#chkbit-as-a-go-module)
- [Usage](#usage) - [Usage](#usage)
- [Repair](#repair) - [Repair](#repair)
- [Ignore files](#ignore-files) - [Ignore files](#ignore-files)
- [chkbit as a Go module](#chkbit-as-a-go-module)
- [FAQ](#faq) - [FAQ](#faq)
@ -50,7 +50,7 @@ Building from the source requires Go.
- Either install it directly - Either install it directly
```shell ```shell
go install github.com/laktak/chkbit@latest go install github.com/laktak/chkbit/v5/cmd/chkbit@latest
``` ```
- or clone and build - or clone and build
@ -58,22 +58,11 @@ go install github.com/laktak/chkbit@latest
```shell ```shell
git clone https://github.com/laktak/chkbit git clone https://github.com/laktak/chkbit
chkbit/scripts/build chkbit/scripts/build
# output is here: # binary:
chkbit/chkbit ls -l chkbit/chkbit
``` ```
## chkbit as a Go module
chkbit is can also be used in other Go programs.
```
go get github.com/laktak/chkbit
```
For more information see the linked documentation on [pkg.go.dev](https://pkg.go.dev/github.com/laktak/chkbit).
## Usage ## Usage
Run `chkbit -u PATH` to create/update the chkbit index. Run `chkbit -u PATH` to create/update the chkbit index.
@ -163,6 +152,17 @@ Add a `.chkbitignore` file containing the names of the files/directories you wis
- hidden files (starting with a `.`) are ignored by default - hidden files (starting with a `.`) are ignored by default
## chkbit as a Go module
chkbit is can also be used in other Go programs.
```
go get github.com/laktak/chkbit/v5
```
For more information see the documentation on [pkg.go.dev](https://pkg.go.dev/github.com/laktak/chkbit/v5).
## FAQ ## FAQ
### Should I run `chkbit` on my whole drive? ### Should I run `chkbit` on my whole drive?