cli: hub-era help text; don't print unused projects.json path under SQL metadata

Root --help still described the retired direct-to-bucket model (S3/GCS as
the sync transport); clients sync only through a hub now. And with
database: sqlite/postgres the hub startup line printed a projects.json
path that is never read — misleading for self-hosters checking where
their metadata lives.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Snow Lee
2026-07-22 07:52:14 -07:00
co-authored by Claude Fable 5
parent 1de5fb1633
commit a00f7cd1a9
2 changed files with 10 additions and 6 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
// bdrive is the BearDrive CLI: mount a folder, and its
// contents stay synchronized across devices through cloud object storage,
// with full per-file change history and offline support.
// contents stay synchronized across devices and teammates through a
// BearDrive hub, with full per-file change history and offline support.
package main
import (
@@ -22,9 +22,9 @@ func main() {
Long: `bdrive — the BearDrive CLI. A mountable, offline-first, synced file
system for AI agents.
Mount any folder and BearDrive keeps it synchronized across your devices through
cloud object storage (Amazon S3, Google Cloud Storage, or a plain shared
directory). Every change is journaled — you can always see which device and
Mount any folder and BearDrive keeps it synchronized across your devices and
teammates through a BearDrive hub (bdrive web — self-hosted or BearDrive
Cloud). Every change is journaled — you can always see which device and
author changed which file, and when. Files are real files on disk, so
everything keeps working offline; changes sync when the remote is reachable.`,
SilenceUsage: true,
+5 -1
View File
@@ -239,7 +239,11 @@ credentials); otherwise it is relayed through this server.`,
srv.Projects = db
srv.Device = webapp.Identity{ID: dev.ID, Name: dev.Name, Author: dev.Author}
srv.Volume = volumeName(remoteURL)
display = remoteURL + " (projects: " + projectsDB + ")"
if meta != nil {
display = remoteURL
} else {
display = remoteURL + " (projects: " + projectsDB + ")"
}
}
if volume != "" {
srv.Volume = volume