fix(gi): stop --stdout from leaking to .gitignore, rework flags #178

Merged
rootiest merged 1 commits from fix/gi-stdout-flag-rework into main 2026-09-24 04:53:38 +00:00
1 Commits
Author SHA1 Message Date
rootiest 82bea2f539 fix(gi): stop --stdout from leaking to .gitignore, rework flags
CI / github-mirror (pull_request) Skipped
CI / docs (pull_request) Successful in 20s
CI / test (pull_request) Successful in 2m16s
--stdout silently fell through to the append path whenever gi ran in
its default (no-args) mode, since only the direct-target branch ever
checked it. A fresh-repo `gi --stdout` wrote boilerplate straight to
.gitignore instead of printing it.

Flags also get reworked for consistency:
- -s/--silent: suppress progress output only, errors and prompts still show
- -o/--stdout: print generated content to stdout instead of .gitignore (was -s)
- -f/--force: bypass the interactive prompt, proceed with no patterns

stdout mode also no longer requires a git repo, since it never
touches .gitignore.
2026-09-23 21:40:25 -04:00