raihan_cli 1.1.0
raihan_cli: ^1.1.0 copied to clipboard
raihan_cli is a Dart-based CLI tool designed to generate feature folder structures in Flutter projects, supporting both MVC and MVVM architectures. It simplifies project scaffolding and ensures consis [...]
๐ฆ Changelog #
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
1.1.0 - 2025-09-25 #
โจ Enhancements #
-
๐งน Simplified user prompts
- Path type input now strictly accepts
1or2, ensuring clearer validation and reducing accidental mis-entries. - Architecture selection refined to immediately validate input.
- Path type input now strictly accepts
-
โก Cleaner configuration handling
- Removed unnecessary re-reads of the config file after saving.
- Streamlined
_saveConfigand_readConfigfor better readability.
-
๐ก Improved CLI UX
- More consistent print statements and comments.
- Reduced redundant logic while preserving all existing features.
๐ ๏ธ Code Quality #
- Refactored code blocks for improved maintainability and readability.
- Consolidated repetitive checks and exception handling.
1.0.0 - 2025-09-23 #
๐ Initial release of raihan_cli!
โจ Features #
- ๐ Generate Flutter feature folders and files based on:
- MVC architecture
- MVVM architecture
- ๐ Supports two path types:
- Feature-based path:
lib/src/features/<feature_name> - Custom path:
lib/<custom_path>/<feature_name>
- Feature-based path:
- ๐ง Smart config saving for:
- Preferred path type
- Preferred architecture
- ๐๏ธ Remove existing feature folders with confirmation prompt
- ๐งฑ Auto-generate the following:
- Controllers / ViewModels
- Repository interfaces and implementations (for MVVM)
- Models
- Screens and widget directories
๐ Structure Examples #
lib/src/features/<feature_name>/(default)lib/<custom_path>/<feature_name>/(custom path)
๐ฎ Next Planned Features #
- โ Clean architecture support
- โ Bloc/Cubit file generation
- โ Optional test file scaffolding
- โ Custom templates for files