Repository navigation
feat: streamline setup with platform-specific guidance and SSH helper - #21
Merged
Merged
Conversation
…ecific guidance - macOS: suggest brew install - Linux: suggest apt install - Update SSH error message to suggest 'nemar auth setup-ssh' Closes #10
- Add ssh.ts utility for SSH key generation and configuration - Add 'nemar auth setup-ssh' command that: - Generates Ed25519 SSH key dedicated to NEMAR (~/.ssh/nemar_ed25519) - Configures ~/.ssh/config automatically - Provides clear instructions to add key to GitHub - Add API types for future OAuth-based auto-registration (see #20) This partially addresses #19. Full auto-registration requires OAuth flow (tracked in #20).
Contributor
Author
PR Review SummaryCritical Issues (2 found)
Important Issues (3 found)
Medium Issues (5 found)
Suggestions
Strengths
Recommended Actions
|
- Remove unused setupSSH() function and SSHSetupResult interface - Extract getInstallCommand() helper to reduce duplication - Wrap mkdirSync calls in try-catch for proper error handling - Preserve error details in catch blocks instead of silently failing - Add TODO comments to unused API functions (for future backend integration)
5 tasks
- Add null check for apiKey before login call (TS2345) - Apply biome formatting and template literal fixes - Sort imports alphabetically
6 tasks
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the onboarding experience for new users by:
Platform-specific installation messages (closes datalad install #10)
brew install dataladandbrew install git-annexapt install dataladandapt install git-annexnemar auth setup-sshNew
nemar auth setup-sshcommand (refs Auto-generate SSH keys for GitHub access during upload #19)~/.ssh/nemar_ed25519)~/.ssh/configautomaticallyNote on issue #19
The original issue proposed auto-registering SSH keys with GitHub. This requires OAuth authorization from the user (to get
admin:public_keyscope), which is not yet implemented. The current implementation:Full automation is tracked in #20.
Test plan
nemar auth --helpshows newsetup-sshcommandRelated issues