CommonProcess class abstract
Common CLI helpers used across the package.
Shared utilities for printing usage, remembering the initial working directory, and performing a simple revert operation when an error occurs.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
deleteFilesSync(
{required String filePath}) → void - Deletes a file from the specified path.
-
getInitialDirectory(
) → Directory - Returns the directory where the CLI was initially invoked.
-
printUsage(
ArgParser parser) → void - Prints a brief usage summary followed by the parser usage details.
-
revertAllProcesses(
{required Directory initialDirectory, required String projectName}) → void - Attempts to remove the created workspace folder when reverting.