Skip to content

feat(share): --label, --no-labels, and list LABELS column - #128

Merged
scott merged 1 commit into
mainfrom
feat/124-share-labels
Sep 16, 2026
Merged

scott merged 1 commit into
mainfrom
feat/124-share-labels

Conversation

@scott

@scott scott commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Repeatable --label on gander share / gander watch replaces the label set (not merge) and skips auto-label.
  • --no-labels sends labels: []. Watch-loop PUT still sends content only.
  • Omit the JSON key unless those flags were on that invocation, so a refresh does not wipe dashboard edits.
  • New shares (and directory-watch adopts) without --label auto-apply a project label from git rev-parse --show-toplevel.
  • gander list prints a LABELS column (- when empty). Completions, man, README updated. Directory watches persist labels over IPC.

Related Issue

Refs gandermd/gandermd#124
Pairs with gandermd/gandermd#134 (server first; this CLI 400s --label against an older gandermd).

Testing

  • go test ./...
  • go vet ./...

Notes

Ship after the server PR is on :latest. readJSON + DisallowUnknownFields rejects labels until then.

Repeatable --label replaces the set; --no-labels sends []. Omit the
JSON key on refresh unless those flags were passed. New shares without
--label pick up a project label from git toplevel. Directory watches
forward labels over IPC.

Refs gandermd/gandermd#124
@scott
scott merged commit 554a144 into main Sep 16, 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.

1 participant