added uninstall and update commands

This commit is contained in:
2026-06-18 23:11:30 +01:00
parent a84d9f1742
commit 703ff3b1a7
3 changed files with 95 additions and 10 deletions
+16
View File
@@ -39,6 +39,22 @@ secretsecurity install
This writes a `pre-commit` hook to `.git/hooks/` that runs `secretsecurity scan` automatically on every commit.
### Uninstall the pre-commit hook
```bash
secretsecurity uninstall
```
Removes the hook if it was installed by SecretSecurity. If the hook was created by something else, it is left untouched.
### Update
```bash
secretsecurity update
```
Updates the tool to the latest version via `dotnet tool update --global`.
### Scan manually
```bash