remove_print_cli 1.1.0+2
remove_print_cli: ^1.1.0+2 copied to clipboard
A command-line tool to remove or modify print statements in Dart/Flutter projects for better code quality and maintenance.
remove_print_cli #
remove_print_cli is a simple command-line tool that helps you clean up your Flutter and Dart projects by removing print()
and log()
statements from all Dart files. This tool ensures your production code is clean and free of unnecessary debug statements.
Features #
- Remove all
print()
statements from your project. - View a history of CLI usage.
- Clear history logs.
- Enable verbose mode to see detailed changes.
Installation #
You can install remove_print_cli
globally using:
dart pub global activate remove_print_cli
Usage #
1. Remove all print()
statements #
remove_print_cli /path/to/flutter/project
2. View history #
remove_print_cli history
3. Clear history #
remove_print_cli clean-history
4. Enable verbose mode (see detailed logs) #
remove_print_cli --verbose /path/to/flutter/project
Example #
Before:
void main() {
print("Debugging message");
log("Another log");
runApp(MyApp());
}
After running remove_print_cli
:
void main() {
runApp(MyApp());
}
Contributing #
Feel free to fork this project, submit issues, or create pull requests to improve this tool!
License #
This project is licensed under the MIT License. See the LICENSE file for details.