raihan_cli 2.0.0 copy "raihan_cli: ^2.0.0" to clipboard
raihan_cli: ^2.0.0 copied to clipboard

raihan_cli generates clean Flutter feature folders with MVC or MVVM architecture, supporting GetX, Provider, Riverpod, and BLoC state management.

๐Ÿ“ฆ Changelog #

All notable changes to this project will be documented in this file.

This project adheres to Semantic Versioning.


2.0.0 - 2025-10-24 #

โœจ Enhancements #

  • ๐Ÿ›  State Management Support

    • Added GetX, Provider, BLoC, and Riverpod options for feature scaffolding.
    • CLI now prompts for state management on the first run and remembers the choice.
  • ๐Ÿ“ Improved Folder Structure Handling

    • Folder structures adapt automatically based on architecture + state management combination.
    • Automatic creation of repository folders and files for MVVM features.
    • BLoC scaffolding includes <feature>_bloc.dart, <feature>_event.dart, and <feature>_state.dart.
    • Riverpod scaffolding now splits provider logic into notifier + provider files for clean separation.
  • ๐Ÿ’ก Better CLI UX

    • Refined prompts for path type, state management, and architecture.
    • Clearer print statements for created folders and files.
    • Enhanced handling of existing folders and files with appropriate warnings.
  • โšก Configuration Improvements

    • Saves state management choice in the config file.
    • Handles custom paths more robustly.
    • Reduced redundant config file reads.

๐Ÿ› ๏ธ Code Quality #

  • Refactored feature creation logic to handle all combinations of MVC/MVVM + GetX/Provider/BLoC/Riverpod.
  • Improved maintainability of file/folder creation and prompts.
  • Consolidated exception handling and validation checks.

1.1.0 - 2025-09-25 #

โœจ Enhancements #

  • ๐Ÿงน Simplified user prompts

    • Path type input now strictly accepts 1 or 2, ensuring clearer validation and reducing accidental mis-entries.
    • Architecture selection refined to immediately validate input.
  • โšก Cleaner configuration handling

    • Removed unnecessary re-reads of the config file after saving.
    • Streamlined _saveConfig and _readConfig for 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>
  • ๐Ÿง  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)

8
likes
150
points
8
downloads

Publisher

verified publisherraihansikdar.com

Weekly Downloads

raihan_cli generates clean Flutter feature folders with MVC or MVVM architecture, supporting GetX, Provider, Riverpod, and BLoC state management.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on raihan_cli