chksum/README.md

74 lines
1.5 KiB
Markdown
Raw Normal View History

[![status-badge](https://woodpecker.hopeless-cloud.xyz/api/badges/ProfessionalUwU/chksum/status.svg)](https://woodpecker.hopeless-cloud.xyz/ProfessionalUwU/chksum)
2023-05-16 00:39:16 +02:00
# chksum
2023-05-16 00:48:24 +02:00
Checksums every file under the current directory
2023-07-04 00:18:09 +02:00
## Runtime dependency
If you use version 2.0.0 or above you will need redis!
```bash
pacman -S redis && systemctl start redis
```
With this redis will be downloaded and started.
Don't forget to enable the service if you don't want to start it every time you run the program.
2023-05-16 00:48:24 +02:00
## Run Locally
Clone the project
```bash
2023-06-23 22:34:00 +02:00
git clone https://gitea.hopeless-cloud.xyz/ProfessionalUwU/chksum.git
2023-05-16 00:48:24 +02:00
```
Go to the project directory
```bash
2023-05-16 19:52:25 +02:00
cd chksum
2023-05-16 00:48:24 +02:00
```
Install dependencies
```bash
2023-05-16 19:52:25 +02:00
pacman -S dotnet-runtime dotnet-sdk
2023-05-16 00:48:24 +02:00
```
Build project
```bash
2023-06-25 16:48:43 +02:00
just build
2023-05-16 00:48:24 +02:00
```
Publish project
```bash
2023-06-25 16:48:43 +02:00
just publish
2023-05-16 00:48:24 +02:00
```
Go to the publish folder
```bash
2023-06-25 16:48:43 +02:00
cd src/Chksum/bin/Release/net7.0/linux-x64/publish
```
2023-05-16 00:48:24 +02:00
Run executable
```bash
2023-06-26 12:58:05 +02:00
./Chksum
2023-06-29 03:58:28 +02:00
```
## Enabling verbose output for troubleshooting
1. Open the file called chksum.cs with your editor of choice.
2. At the top there will be the logger configuration which you can change. Should look like this.
```cs
private ILogger logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Error)
.WriteTo.File("chksum.log")
.CreateLogger();
```
3. Change the minimum level of the logger to Verbose.
4. Compile the program
5. Profit. Now you will be able to see how what the program is doing in detail.