Added method "show" to medunda main script#74
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new medunda show CLI tool to display available variables and providers, supported by provider-level descriptions and a new tabulate dependency to format the output.
Changes:
- Added an abstract
Provider.get_description()API and implemented it for all existing providers. - Introduced
medunda show variables|providerssubcommands (with optional provider/frequency filtering for variables). - Added
tabulateto project dependencies and updated the lockfile.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
src/medunda/__main__.py |
Adds the show CLI command and table rendering via tabulate. |
src/medunda/providers/provider.py |
Adds new abstract get_description() provider API. |
src/medunda/providers/cmems.py |
Implements get_description() for CMEMS providers. |
src/medunda/providers/local_reanalysis.py |
Implements get_description() for LocalReanalysis provider. |
src/medunda/providers/tar_archive.py |
Implements get_description() for TarArchive provider. |
pyproject.toml |
Adds tabulate runtime dependency. |
poetry.lock |
Regenerated lockfile, including tabulate and many other dependency updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.