-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Context
Review focused on src/g/__init__.py (parser + runtime bundled), packaging metadata, and CLI behavior.
Goal
Keep g minimal while making it more automatable and standards-aligned.
Low-lift ideas
- Move CLI runtime from
g.__init__into dedicated modules (cli.py,runner.py). - Add
--jsonmode to report detected VCS, executed command, and exit code. - Document exit code semantics for no-repo / command-failure paths.
Medium-lift ideas
- Add
--dry-runto show what would execute without side effects. - Add pluggable VCS marker detection (beyond
.git/.hg/.svn) behind a strategy abstraction. - Add contract tests for parser and machine-output behavior.
High-lift ideas
- Add
g capabilities --jsonfor environment and detector introspection. - Publish a tiny machine-readable command contract in docs.
Done when
- Human and machine output are both first-class.
- Runtime structure is modular.
- Behavior is explicit and testable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels