Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional bits towards to first command implementations #32

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Conversation

mih
Copy link
Member

@mih mih commented Oct 27, 2024

No description provided.

@mih mih force-pushed the create branch 2 times, most recently from 6b5332e to 36e900a Compare October 27, 2024 15:58
@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b69476c) to head (0a56618).

Additional details and impacted files
@@            Coverage Diff             @@
##              main       #32    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           52        54     +2     
  Lines         2202      2333   +131     
  Branches       146       162    +16     
==========================================
+ Hits          2202      2333   +131     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

mih added 3 commits October 27, 2024 19:44
This duo of constraints has a key role for resolving paths with and
without an optional dataset context.

In legacy DataLad, a similar role was filled by a set of helper
functions (e.g., `require_dataset()`, and `resolve_path()`). These are
no migrated, because of the complex interdependencies. I envision
for them to be entirely replaced by these two constraints.

The next commit will have dedicated documentation on the targeted
implementation pattern.
This aims to illustrate the necessary boilerplate to add the
conventional DataLad path resolution  behavior to a command.

Importantly, this is done completely outside the implementation
of the actual command. It is all parameterization of the
`@datalad_command` decorator.
@mih mih merged commit 6393bec into main Oct 28, 2024
8 of 9 checks passed
@mih mih deleted the create branch October 28, 2024 14:41
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.

2 participants