Skip to content

Epic: DataLad-like CLI experience with pure git-annex #58

Closed
6 of 6 issues completed
Closed

Description

@neuromechanist

Vision

Provide a familiar DataLad-like user experience for dataset interaction while removing the Python/DataLad dependency. Users who know DataLad commands should feel at home with NEMAR CLI.

Current State

Existing commands:

  • nemar dataset validate - BIDS validation
  • nemar dataset upload - Initial upload
  • nemar dataset download - Download entire dataset
  • nemar dataset status - Check dataset status
  • nemar dataset list - List datasets
  • nemar dataset version - Create new version with DOI

Missing DataLad-like commands:

  • clone - Clone a dataset repository
  • get - Download specific files (not entire dataset)
  • save - Stage and commit local changes
  • push - Push changes to remote

Current dependency: DataLad (Python) → should be pure git-annex

Proposed Commands

Command Purpose DataLad equivalent
nemar dataset clone <id> Clone dataset repo locally datalad clone
nemar dataset get [files] Download specific annexed files datalad get
nemar dataset save [-m msg] Stage + commit changes datalad save
nemar dataset push Push to GitHub + S3 datalad push
nemar dataset drop [files] Remove local copies of annexed files datalad drop

Implementation Phases

Phase 1: Remove DataLad dependency (#22)

  • Refactor src/lib/datalad.ts to use git-annex directly
  • Keep same internal API so consuming code doesn't change
  • Still require external git-annex installation

Phase 2: Add missing commands (#51 + new)

  • Implement clone, get, save, push, drop
  • Design workflow for ongoing updates (not just initial upload)
  • Handle incremental uploads via git-annex

Phase 3: Polish UX

  • Helpful error messages pointing to git-annex installation
  • Progress indicators for large file transfers
  • Offline-friendly operations where possible

Phase 4 (Optional): Bundle git-annex

  • Explore packaging git-annex binaries
  • Lazy download on first use
  • Only if user feedback indicates installation friction

DataLad Compatibility (Confirmed)

Research confirms users can still access NEMAR datasets with DataLad:

Child Issues

Success Criteria

  1. Zero Python dependencies
  2. Users familiar with DataLad can use NEMAR CLI intuitively
  3. DataLad users can still access NEMAR datasets with their existing tools
  4. Incremental updates work efficiently (only changed files uploaded)

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions