Major CLI refactoring: Typer migration, command chaining, and testing - #2
Merged
Conversation
- Replace os.path.exists() with Path().exists() in managers.py - Replace os.getcwd() with Path.cwd() in managers.py - Rewrite environment.py to use pathlib throughout - Remove os module import from environment.py
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
Major refactoring of Mantis CLI with migration to Typer framework, improved command chaining, and comprehensive testing infrastructure.
CLI Framework Migration
bforbuild,dfordeploy)Command Chaining with
+Separatormantis -e prod build + push + deploymantis -e prod build web api + push + deploy+separatorProject Structure
commands/core.py,commands/images.py, etc.)@commanddecorator with shortcut and panel supportschema.py,config.py)os.pathwithpathlibthroughoutNew Features
rolling-updatecommand for one-by-one container updatesrenamecommand for container renaming-n/--dry-run)Testing & CI
Documentation
-eflag syntax+separator for chainingTest plan
mantis -e <env> build + push + deploymantis -e <env> statusmantis --help,mantis build --help