diff options
| author | s <[email protected]> | 2025-11-04 11:06:35 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-04 11:06:35 -0500 |
| commit | 4486b6659640102dd542fea007f4c33ac02511ff (patch) | |
| tree | 3e991f3722e3b0062a6078078ff6aa1478c3ab00 /README.md | |
| parent | 3c06eede8ac8cb79272601aad3b2d3359657443a (diff) | |
| download | dborg-4486b6659640102dd542fea007f4c33ac02511ff.tar.gz dborg-4486b6659640102dd542fea007f4c33ac02511ff.zip | |
feat: add version checking and auto-update functionality
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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: |
