Remove Apps
This command allows you to safely remove an entire app module from your project. It automates the deletion of the directory and cleans up all related configurations to ensure the project remains buildable.
morpheme remove-apps [apps_name]
Description
When you run this command, the CLI performs the following actions:
- Deletes Directory: Removes the
apps/[apps_name]directory. - Updates Locator: Removes the app's dependency injection registration from
lib/locator.dart. - Clean Pubspec: Removes the app module from the main
pubspec.yamldependencies. - Format: Runs
dart formatto clean up the code.
Usage
To remove an app named driver:
morpheme remove-apps driver
Irreversible Action
This command permanently deletes the app directory. Ensure you have backed up your code or committed changes to version control before running this command.