Refactor package CLI to native Typer subcommands and update metadata to v1.1.0#19
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Overview
This PR fully migrates the KrakenParser command-line interface from the legacy
argparsemodule to the moderntyperframework. This overhaul unifies argument parsing, eliminates obsoletesubprocess.runhacks previously used for sub-module isolation, and cleans up legacy routing flags.Key Changes
krakenparser.py) has been refactored into nativetypersubcommands. Backward compatibility is preserved—the full pipeline can still be triggered directly via global options on the root interface without an explicit subcommand keyword.mpa,combine,split,process,csv,relabund,diversity) are now registered as standalone Typer sub-apps and neatly organized within an advanced Rich help panel.--bacteria,--fungi,--archaea) to the global pipeline.pathlib.Pathobjects instead of strings.1.1.0, declaredtyperas a core runtime dependency, and introduced a lowercase console script alias (krakenparser) alongside the originalKrakenParser. The README.md and test suites have been adjusted accordingly.