fj/cmd
sid 17ca49d0c5 feat: add branch, notification, org, open, whoami commands
Ports five commands from tea that fgj-sid was missing:

- fgj branch {list,rename,delete} — list branches with protection
  status, rename, and delete with confirmation.
- fgj notification {list,read} — list user notifications (unread by
  default, --all for everything), mark individual threads read.
- fgj org {list,create,delete} — manage organizations on the host.
  Create accepts --description/--full-name/--website/--location and
  --visibility (public/limited/private).
- fgj open [number] — open the repo, issue, or PR in a browser.
  Auto-detects issue-vs-PR via GetIssue. Falls back to printing the
  URL when stdout is not a TTY or --url is passed.
- fgj whoami — display authenticated user + host.

All commands follow the established pattern (parseRepo + config.Load +
api.NewClientFromConfig + ios), support --json where list semantics
apply, and share a new loadClient helper for host-scoped (non-repo)
commands. Tested live against forgejo.zerova.net.

Refs audit recommendation.md §'v0.5.0 — Missing resources'.
2026-04-19 21:27:55 -06:00
..
actions.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
actions_test.go feat: implement workflow list/view/run 2026-01-16 10:52:15 +01:00
aliases.go feat: v0.3.0d — add PR checks, iostreams, aliases, and broad enhancements 2026-03-23 12:42:24 -06:00
api.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
auth.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
branch.go feat: add branch, notification, org, open, whoami commands 2026-04-19 21:27:55 -06:00
completion.go feat: add completion and manpage commands 2026-01-18 13:11:40 +01:00
errors.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
ios_init.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
issue.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
json.go feat: v0.3.0d — add PR checks, iostreams, aliases, and broad enhancements 2026-03-23 12:42:24 -06:00
label.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
manpages.go feat: add completion and manpage commands 2026-01-18 13:11:40 +01:00
milestone.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
notification.go feat: add branch, notification, org, open, whoami commands 2026-04-19 21:27:55 -06:00
open.go feat: add branch, notification, org, open, whoami commands 2026-04-19 21:27:55 -06:00
org.go feat: add branch, notification, org, open, whoami commands 2026-04-19 21:27:55 -06:00
pr.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
pr_checks.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
pr_diff.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
pr_review.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
release.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
repo.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00
repo_create_test.go feat: implement repo create command 2026-03-13 17:44:44 +01:00
root.go feat(release): v0.4.0 foundations — ldflags version + goreleaser + CI Go 1.24 2026-04-19 21:04:57 -06:00
whoami.go feat: add branch, notification, org, open, whoami commands 2026-04-19 21:27:55 -06:00
wiki.go chore: migrate module path to public org 2026-04-11 10:34:34 -06:00