LogRemovalManager class

A class responsible for managing the log removal process. This includes selecting the operation type (folder/file), choosing log patterns, and performing the log removal on the specified target path.

Example usage:

final logRemovalManager = LogRemovalManager(directorySelector);
logRemovalManager.run();

Constructors

LogRemovalManager.new(DirectorySelector directorySelector)

Properties

console → Console
Console instance for user interaction and colored output
final
defaultPatterns List<LogPattern>
A list of default log patterns to be removed from the code.
final
directorySelector DirectorySelector
Instance used for selecting directory or files
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetPath String
The path to the target directory or file that will be managed by the log removal process.
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() Future<void>
Runs the log removal process.
selectLogPatterns() List<RegExp>
Prompts the user to select log patterns to remove from a list of default patterns or to input a custom log pattern. The user can toggle selections using the space key.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited