From 4486b6659640102dd542fea007f4c33ac02511ff Mon Sep 17 00:00:00 2001 From: s Date: Tue, 4 Nov 2025 11:06:35 -0500 Subject: feat: add version checking and auto-update functionality --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a835822..4f27264 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,9 @@ dborg/ │ │ ├── usrsx.go # Username check types │ │ └── x.go # Twitter/X types │ └── utils/ # Utility functions -│ └── output.go # Output formatting helpers +│ ├── output.go # Output formatting helpers +│ ├── version.go # Version checking and auto-update +│ └── version_test.go # Version utility tests ├── go.mod ├── go.sum ├── main.go @@ -43,7 +45,7 @@ dborg/ ## Installation ```bash -go install +go install git.db.org.ai/dborg ``` To build with admin commands: @@ -58,6 +60,19 @@ Or: go build -tags admin -o dborg . ``` +### Auto-Update + +The CLI automatically checks for updates on startup. When a newer version is available: +- You'll be prompted to update +- Accepts with `Y` or `Enter` to install the latest version via `go install git.db.org.ai/dborg` +- The binary automatically restarts with the new version +- Skip with `n` to continue with your current version + +Check your current version: +```bash +dborg version +``` + ## Configuration Set your API key: -- cgit v1.2.3