You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add import current onboarding command (#37)
* feat(cli): add import current onboarding command
Add `gitrole import current --name <role>` as a narrow onboarding command
for saving the effective current commit identity as a named role.
Also:
- import the effective local identity when a repo-local override is active
- fall back to the effective global identity otherwise
- avoid inferring SSH keys, GitHub user/host, or `.gitrole` policy
- add the result contract shape needed for import output
- wire the command into the CLI and renderer
- add CLI, use-case, and hermetic E2E coverage
- update the README with the new command and onboarding example
- add docs explaining `current` vs `status` vs `doctor`
Verified with:
- npm run build
- npm test
- npm run test:e2e
- npm run test:release
- npm run docs:build
* test(cli): update current help expectation
Copy file name to clipboardExpand all lines: README.md
+22-10Lines changed: 22 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,13 @@
19
19
20
20
`gitrole` is a focused CLI for developers who move between multiple Git identities on one machine. Save named roles like `work`, `personal`, or `client-acme`, switch to the right one, and check the repo before you commit or push.
21
21
22
+
`gitrole` is strongest when it answers:
23
+
24
+
- who will this commit say it is from?
25
+
- who will GitHub think I am when I push?
26
+
27
+
New features should reinforce that boundary rather than expanding into general account management.
0 commit comments