Skip to content

feat: add --email flag to vers signup, persist email and SSH key path in config#172

Merged
AlephNotation merged 1 commit intomainfrom
signup-email-flag
Apr 5, 2026
Merged

feat: add --email flag to vers signup, persist email and SSH key path in config#172
AlephNotation merged 1 commit intomainfrom
signup-email-flag

Conversation

@AlephNotation
Copy link
Copy Markdown
Contributor

Summary

Adds an --email flag to vers signup so users can specify their email directly instead of relying on git config user.email. Also persists the email and SSH key path in .versrc for future use.

Changes

  • --email flagvers signup --email you@example.com skips the git email lookup
  • Config fields.versrc now stores email and sshKeyPath (both omitempty for backward compat)
  • FindSSHPublicKey — now returns (key, keyPath, error) so callers can access the resolved path
  • ReadSSHPublicKey — new helper to read a key from a specific path

Usage

vers signup                           # uses git config user.email (unchanged)
vers signup --email you@example.com   # uses the provided email

Example .versrc after signup

{
  "apiKey": "...",
  "email": "you@example.com",
  "sshKeyPath": "/Users/you/.ssh/id_ed25519.pub"
}

… in config

- Add --email flag to override git config user.email during signup
- Add email and sshKeyPath fields to .versrc config
- FindSSHPublicKey now returns the key path alongside the key contents
- Add ReadSSHPublicKey helper for reading a key from a specific path
@AlephNotation AlephNotation merged commit 8a3fb09 into main Apr 5, 2026
6 checks passed
@AlephNotation AlephNotation deleted the signup-email-flag branch April 5, 2026 23:43
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.

1 participant