Repository navigation
Add DataLad-like dataset commands (clone/get/save/push/drop) - #73
Merged
Merged
Conversation
DataLad-like CLI commands for local dataset operations: - clone: resolve dataset ID via API, git clone + annex init - get: download annexed files with parallel streams - save: stage all changes + commit - push: push git to GitHub + copy annex content to S3 - drop: free local copies (with safety check) Includes 19 tests covering help output, error handling, and real git-annex operations in temporary repos.
- Rewrite getAnnexS3Remotes: remove dead code, validate remote names, add proper error handling instead of silent catch blocks - Fix dropFiles: return success=false on non-zero exit code, use defensive error extraction instead of bare type assertion - Fix copyToAnnexRemote: defensive error extraction - Clone: validate github_repo format before constructing URL - Get: validate --jobs, improve "0 files" message - Push: exit non-zero on S3 failure, validate --jobs, log which remote is selected when multiple exist - Drop: exit non-zero on partial failure, show error details
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR73Version: 🤖 Updated on each push. |
Contributor
Author
PR Review SummaryIssues Found and Fixed (commit 68daa58)Critical:
Important:
Verification
|
This was referenced Jan 24, 2026
This branch was previously deployed
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
clone,get,save,push,dropgit-annex.ts:dropFiles,getAnnexS3Remotes,copyToAnnexRemoteCommands
nemar dataset clone <id>nemar dataset get [files...]nemar dataset save [-m msg]nemar dataset pushnemar dataset drop [files...]Test plan
Closes #58
Partial #51