Skip to content

feat(cli): add --silent to skip opening the browser - #125

Merged
scott merged 1 commit into
mainfrom
feat/117-silent-share-watch
Sep 15, 2026
Merged

scott merged 1 commit into
mainfrom
feat/117-silent-share-watch

Conversation

@scott

@scott scott commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add --silent so gander share / gander watch / local --watch / one-shot preview still create or register the share or watch and still print the URL, but do not open a browser.

This is a client-only flag. POST /api/shares, watch handoff, and ~/.gander mapping are unchanged. No silent JSON key and no config default.

gander share plan.md --silent
gander watch plan.md --silent
gander share --watch --silent plan.md
gander --watch --silent plan.md
gander --silent file.md

--silent is orthogonal to --visibility / --private / --comments / --no-comments. --visibility=hidden already skips the browser (and 404s the viewer); combining the two is redundant and fine.

MCP mcpInstructions now tells agents to gander watch --silent <path> when watching is false.

Pairing

CLI-first. No server JSON key.

This PR can merge independently.

Closes #117

Test plan

  • go test ./...
  • go vet ./...
  • go build ./...
  • gander share --silent file.md prints the URL and does not open a browser
  • gander watch --silent file.md registers the watch, prints the URL, does not open a browser
  • gander share file.md still opens the browser once
  • gander share --silent --visibility=anyone file.md sends doc_visibility=anyone and does not open

Add a client-only --silent flag so share, watch, local --watch, and
one-shot preview still create/register and print the URL, but do not
open a browser. Orthogonal to visibility and commenting; no JSON key
and no config default.

Closes #117
@scott
scott merged commit 4a3d021 into main Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: --silent to add shares and watches without opening the browser

1 participant