From a00f7cd1a95508f1ba1400b3f01ad4e7b7d4bc11 Mon Sep 17 00:00:00 2001 From: Snow Lee Date: Wed, 22 Jul 2026 07:52:14 -0700 Subject: [PATCH] cli: hub-era help text; don't print unused projects.json path under SQL metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- cmd/bdrive/main.go | 10 +++++----- cmd/bdrive/web.go | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/cmd/bdrive/main.go b/cmd/bdrive/main.go index d7bb581..2f06ddc 100644 --- a/cmd/bdrive/main.go +++ b/cmd/bdrive/main.go @@ -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, diff --git a/cmd/bdrive/web.go b/cmd/bdrive/web.go index 996e896..3561bd0 100644 --- a/cmd/bdrive/web.go +++ b/cmd/bdrive/web.go @@ -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