Skip to content

feat: add --private flag to gitd init#159

Merged
LiranCohen merged 1 commit intomainfrom
feat/init-private
Mar 2, 2026
Merged

feat: add --private flag to gitd init#159
LiranCohen merged 1 commit intomainfrom
feat/init-private

Conversation

@LiranCohen
Copy link
Contributor

Summary

Closes #124.

  • Adds --private flag to gitd init. Repos default to public visibility.
  • When --private is passed, the DWN repo record's visibility tag is set to 'private', which triggers encrypted bundle sync downstream (bundle-sync.ts).
  • Updated the init output to show visibility: Initialized forge repo "name" (branch: main, private).
  • Updated usage string to include --private.
  • Added 2 tests: verifies default public visibility and --private produces a record with visibility: 'private'.

Build, lint, and all 191 CLI tests pass (+ hardening/flags/daemon-lifecycle).

Repos default to public visibility. Pass `--private` to create a
private repo with encrypted bundle sync. The visibility tag is already
handled downstream by bundle-sync and migrate.

Closes #124
@LiranCohen LiranCohen merged commit 4def353 into main Mar 2, 2026
4 checks passed
@LiranCohen LiranCohen deleted the feat/init-private branch March 2, 2026 05:23
@github-actions github-actions bot mentioned this pull request Mar 2, 2026
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.

No --private flag on gitd init; no --json output; no gitd pr update

1 participant