Replace ArgParse with Fire - #23
Merged
Merged
Conversation
sroberts
commented
Nov 18, 2025
Owner
- Replace argparse with Google Fire for more intuitive CLI
- Refactor malware_manager.py to use class-based Fire interface
- Add fire>=0.5.0 to requirements.txt
- Update README.md with new Fire-based usage examples
- Maintain all existing functionality (load, recent, find, delete)
- Improve help system with automatic command documentation
- Replace argparse with Google Fire for more intuitive CLI - Refactor malware_manager.py to use class-based Fire interface - Add fire>=0.5.0 to requirements.txt - Update README.md with new Fire-based usage examples - Maintain all existing functionality (load, recent, find, delete) - Improve help system with automatic command documentation
- Create test_fire_cli.py with 13 test cases - Test MalwareManager initialization (success/failure) - Test load command with/without plugins - Test recent command with default and custom counts - Test find command - Test delete command (not yet implemented) - Test database initialization failure handling - Test Fire integration with main() - Achieve 98% code coverage for malware_manager.py - All 42 tests passing (13 new + 29 existing)
- Rename malware_manager.py to malwarehouse.py for simpler usage - Update all README.md examples to use new command name - Update test imports to reference malwarehouse module - All 42 tests passing with new naming - Improves user experience with shorter, more intuitive command
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.