feat(cli): add --silent to skip opening the browser - #125
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
--silentsogander 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~/.gandermapping are unchanged. NosilentJSON key and no config default.--silentis orthogonal to--visibility/--private/--comments/--no-comments.--visibility=hiddenalready skips the browser (and 404s the viewer); combining the two is redundant and fine.MCP
mcpInstructionsnow tells agents togander 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.mdprints the URL and does not open a browsergander watch --silent file.mdregisters the watch, prints the URL, does not open a browsergander share file.mdstill opens the browser oncegander share --silent --visibility=anyone file.mdsendsdoc_visibility=anyoneand does not open